知识付费微信小程序
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.

45 lines
851 B

7 months ago
7 months ago
  1. import Vue from 'vue'
  2. import api from '@/api/api.js'
  3. import utils from './utils/utils.js'
  4. // 当前环境
  5. const type = 'dev'
  6. // 环境配置
  7. const config = {
  8. dev : {
  9. baseUrl : 'http://noticeadmin.augcl.com/a-notice-api/',
  10. },
  11. prod : {
  12. baseUrl : 'http://xxx.xxx.xxx/xxx',
  13. }
  14. }
  15. // 默认配置
  16. const defaultConfig = {
  17. mapKey : 'XMBBZ-BCPCV-SXPPQ-5Y7MY-PHZXK-YFFVU',
  18. aliOss : {
  19. url : 'https://tennis-oss.xzaiyp.top/',
  20. config : {
  21. //桶的地址
  22. region: 'oss-cn-guangzhou',
  23. //id
  24. accessKeyId:'LTAI5tNycA46YTwm383dRvMV',
  25. //密钥
  26. accessKeySecret:'tAdbYQCmdur6jbZ8hjvgB7T1Z52mIG',
  27. //桶的名字
  28. bucket: 'zhuoqiu-image',
  29. endpoint:'oss-cn-guangzhou.aliyuncs.com',
  30. }
  31. },
  32. }
  33. Vue.prototype.$config = utils.deepMergeObject(defaultConfig, config[type])
  34. Vue.prototype.$api = api
  35. export default Vue.prototype.$config