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', // baseUrl : 'https://api.olxbookbub.top/uav-oxl-api',//国外服务器 baseUrl : 'https://api.oxlbook.top/uav-oxl-api',//国外服务器第二版 2024-12-14 }, } // 默认配置 const defaultConfig = { mapKey : '', fileType : 'service', 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://shop996image.oss-ap-southeast-5.aliyuncs.com', config : { //桶的地址 region: 'oss-ap-southeast-5.aliyuncs.com', //id accessKeyId:'LTAI5tHmEEmaoEArocKKpccd', //密钥 accessKeySecret:'GeVPNHZnnEwQyvtIbHrZgEKtWzaCxx', //桶的名字 bucket: 'shop996image', endpoint:'oss-cn-shenzhen.aliyuncs.com', },//oss-cn-hangzhou.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