You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.4 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
  1. import Vue from 'vue'
  2. import { deepMergeObject } from '@/utils/base.js'
  3. import uView from '@/uni_modules/uview-ui'
  4. Vue.use(uView)
  5. // 当前环境
  6. const type = 'prod'
  7. // 环境配置
  8. const config = {
  9. dev : {
  10. baseUrl : 'http://h5.xzaiyp.top/uav-api',
  11. },
  12. prod : {
  13. baseUrl : 'https://uav-api.xzaiyp.top/uav-api',
  14. }
  15. }
  16. // 默认配置
  17. const defaultConfig = {
  18. mapKey : '',
  19. aliOss : {
  20. url : 'https://tennis-oss.xzaiyp.top/',
  21. config : {
  22. //桶的地址
  23. region: 'oss-cn-guangzhou',
  24. //id
  25. accessKeyId:'LTAI5tNycA46YTwm383dRvMV',
  26. //密钥
  27. accessKeySecret:'tAdbYQCmdur6jbZ8hjvgB7T1Z52mIG',
  28. //桶的名字
  29. bucket: 'zhuoqiu-image',
  30. endpoint:'oss-cn-guangzhou.aliyuncs.com',
  31. },
  32. // url : 'https://dianpin-img.xzaiyp.top/',
  33. // config : {
  34. // //桶的地址
  35. // region: 'oss-cn-guangzhou',
  36. // //id
  37. // accessKeyId:'LTAI5tMan18fjJPUtr3Aim2W',
  38. // //密钥
  39. // accessKeySecret:'lhALqqgYijc115wY8c1KfTYkbSnq5I',
  40. // //桶的名字
  41. // bucket: 'mangoimageapplet',
  42. // endpoint:'oss-cn-shenzhen.aliyuncs.com',
  43. // },
  44. // oss:
  45. // accessKey: LTAI5tMan18fjJPUtr3Aim2W
  46. // secretKey: lhALqqgYijc115wY8c1KfTYkbSnq5I
  47. // endpoint: oss-cn-shenzhen.aliyuncs.com
  48. // bucketName: mangoimageapplet
  49. // staticDomain: https://dianpin-img.xzaiyp.top
  50. },
  51. }
  52. Vue.prototype.$api = 'http://124.71.12.219:8085/'
  53. Vue.prototype.$config = deepMergeObject(defaultConfig, config[type])
  54. export default Vue.prototype.$config