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.
 
 
 
 
 

63 lines
1.4 KiB

import Vue from 'vue'
import { deepMergeObject } from '@/utils/base.js'
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
// 当前环境
const type = 'prod'
// 环境配置
const config = {
dev : {
baseUrl : 'http://h5.xzaiyp.top/uav-api',
},
prod : {
baseUrl : 'https://uav-api.xzaiyp.top/uav-api',
}
}
// 默认配置
const defaultConfig = {
mapKey : '',
aliOss : {
url : 'https://tennis-oss.xzaiyp.top/',
config : {
//桶的地址
region: 'oss-cn-guangzhou',
//id
accessKeyId:'LTAI5tNycA46YTwm383dRvMV',
//密钥
accessKeySecret:'tAdbYQCmdur6jbZ8hjvgB7T1Z52mIG',
//桶的名字
bucket: 'zhuoqiu-image',
endpoint:'oss-cn-guangzhou.aliyuncs.com',
},
// url : 'https://dianpin-img.xzaiyp.top/',
// config : {
// //桶的地址
// region: 'oss-cn-guangzhou',
// //id
// accessKeyId:'LTAI5tMan18fjJPUtr3Aim2W',
// //密钥
// accessKeySecret:'lhALqqgYijc115wY8c1KfTYkbSnq5I',
// //桶的名字
// bucket: 'mangoimageapplet',
// endpoint:'oss-cn-shenzhen.aliyuncs.com',
// },
// oss:
// accessKey: LTAI5tMan18fjJPUtr3Aim2W
// secretKey: lhALqqgYijc115wY8c1KfTYkbSnq5I
// endpoint: oss-cn-shenzhen.aliyuncs.com
// bucketName: mangoimageapplet
// staticDomain: https://dianpin-img.xzaiyp.top
},
}
Vue.prototype.$api = 'http://124.71.12.219:8085/'
Vue.prototype.$config = deepMergeObject(defaultConfig, config[type])
export default Vue.prototype.$config