购物车历史订单增加,代码优化
This commit is contained in:
8
env/config.js
vendored
8
env/config.js
vendored
@@ -30,13 +30,7 @@ const processEnv = process.env.NODE_ENV
|
||||
// 改变env环境
|
||||
function changeEnv(envMode){
|
||||
appConfig.env = allEnvMap[envMode || processEnv]
|
||||
|
||||
// // 动态导包的方式:设置全局env配置项目 : 当参数不存在, 那么获取node环境
|
||||
// import(`./env.${envMode || processEnv}.js`).then(module => {
|
||||
// appConfig.env = module.default
|
||||
// }).catch(() => {
|
||||
// appConfig.env = production //当出现错误, 比如本地没有复制dev文件时, 默认使用生产环境
|
||||
// })
|
||||
appConfig.wss = allEnvMap[envMode || processEnv].JEEPAY_BASE_URL_WSS
|
||||
}
|
||||
|
||||
export default { changeEnv: changeEnv }
|
||||
|
||||
7
env/env.development.js
vendored
7
env/env.development.js
vendored
@@ -1,6 +1,5 @@
|
||||
export default {
|
||||
'JEEPAY_BASE_URL': 'https://b.rscygroup.com', // 请求URL(生产环境)
|
||||
'JEEPAY_BASE_URL_H5': 'https://b.rscygroup.com'
|
||||
// 'JEEPAY_BASE_URL': 'http://192.168.1.8:9218' // 请求URL(测试环境)
|
||||
// 'JEEPAY_BASE_URL': 'https://b.qilinshuzi.com' //支付网关URL
|
||||
'JEEPAY_BASE_URL': 'http://192.168.1.31/', // 请求URL(生产环境)
|
||||
'JEEPAY_BASE_URL_H5': 'http://192.168.1.31/',
|
||||
'JEEPAY_BASE_URL_WSS': 'ws://192.168.1.31:2348' ,// sockets
|
||||
}
|
||||
7
env/env.production.js
vendored
7
env/env.production.js
vendored
@@ -1,6 +1,5 @@
|
||||
export default {
|
||||
'JEEPAY_BASE_URL': 'https://b.rscygroup.com', // 请求URL(生产环境)
|
||||
'JEEPAY_BASE_URL_H5': 'https://b.rscygroup.com'
|
||||
// 'JEEPAY_BASE_URL': 'http://192.168.1.8:9218' // 请求URL(测试环境)
|
||||
// 'JEEPAY_BASE_URL': 'https://b.qilinshuzi.com' //支付网关URL
|
||||
'JEEPAY_BASE_URL': 'https://cashier.sxczgkj.com/', // 请求URL(生产环境)
|
||||
'JEEPAY_BASE_URL_H5': 'https://cashier.sxczgkj.com/',
|
||||
'JEEPAY_BASE_URL_WSS': 'wss://czgeatws.sxczgkj.com/wss' // sockets
|
||||
}
|
||||
Reference in New Issue
Block a user