|
@ -14,8 +14,11 @@ const config = { |
|
|
// baseUrl : 'http://8.138.162.67:8000/a-notice-api',
|
|
|
// baseUrl : 'http://8.138.162.67:8000/a-notice-api',
|
|
|
baseUrl : 'http://h5.xzaiyp.top/a-notice-api', |
|
|
baseUrl : 'http://h5.xzaiyp.top/a-notice-api', |
|
|
}, |
|
|
}, |
|
|
prod : { |
|
|
|
|
|
|
|
|
test : { |
|
|
baseUrl : 'https://admin.anqi.shop/a-notice-api', |
|
|
baseUrl : 'https://admin.anqi.shop/a-notice-api', |
|
|
|
|
|
}, |
|
|
|
|
|
prod : {//正式环境
|
|
|
|
|
|
baseUrl : 'https://admin.ytonggao.com/a-notice-api', |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -23,21 +26,41 @@ const config = { |
|
|
// 默认配置
|
|
|
// 默认配置
|
|
|
const defaultConfig = { |
|
|
const defaultConfig = { |
|
|
mapKey : '', |
|
|
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',
|
|
|
|
|
|
// }
|
|
|
|
|
|
// },
|
|
|
aliOss : { |
|
|
aliOss : { |
|
|
url : 'https://tennis-oss.xzaiyp.top/', |
|
|
|
|
|
|
|
|
url : 'https://image.ytonggao.com/', |
|
|
config : { |
|
|
config : { |
|
|
//桶的地址
|
|
|
//桶的地址
|
|
|
region: 'oss-cn-guangzhou', |
|
|
|
|
|
|
|
|
region: 'oss-cn-chengdu', |
|
|
//id
|
|
|
//id
|
|
|
accessKeyId:'LTAI5tNycA46YTwm383dRvMV', |
|
|
|
|
|
|
|
|
accessKeyId:'LTAI5t9Hw5DTgahn82upXu4L', |
|
|
//密钥
|
|
|
//密钥
|
|
|
accessKeySecret:'tAdbYQCmdur6jbZ8hjvgB7T1Z52mIG', |
|
|
|
|
|
|
|
|
accessKeySecret:'hGJPlLmwK9RVH3FQHkXWCSPgPiGrHj', |
|
|
//桶的名字
|
|
|
//桶的名字
|
|
|
bucket: 'zhuoqiu-image', |
|
|
|
|
|
endpoint:'oss-cn-guangzhou.aliyuncs.com', |
|
|
|
|
|
|
|
|
bucket: 'zkcm', |
|
|
|
|
|
endpoint:'oss-cn-chengdu.aliyuncs.com', |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
|
|
|
// oss:
|
|
|
|
|
|
// accessKey: LTAI5t9Hw5DTgahn82upXu4L
|
|
|
|
|
|
// secretKey: hGJPlLmwK9RVH3FQHkXWCSPgPiGrHj
|
|
|
|
|
|
// endpoint: oss-cn-chengdu.aliyuncs.com
|
|
|
|
|
|
// bucketName: zkcm
|
|
|
|
|
|
// staticDomain:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Vue.prototype.$config = utils.deepMergeObject(defaultConfig, config[type]) |
|
|
Vue.prototype.$config = utils.deepMergeObject(defaultConfig, config[type]) |
|
|