Commit 9682da7b by 李伟康

commit

1 parent 61f6b99f
No preview for this file type
...@@ -8,12 +8,34 @@ ...@@ -8,12 +8,34 @@
*/ */
// 本地环境配置 // 本地环境配置
module.exports = { module.exports = {
envVersion: "develop",
title: '嘀加企微管家', title: '嘀加企微管家',
request: { request: {
// baseURL: 'http://scrm.test.glsx.com.cn/scrm-wechat' // 测试项目地址 baseURL: 'http://scrm.test.glsx.com.cn', // 本地测试项目地址,
baseURL: 'http://192.168.1.5:8083/scrm-wechat' // 测试项目地址 // 设置超时时间
timeout: 180000,
// 携带凭证
withCredentials: true,
// 返回数据类型
responseType: 'json'
}, },
APPID: 'xxx', response: {
APPSECRET: 'xxx', data_key: 'data',
cdn: 'https://www.xxx.cn/static' message_key: 'message',
code_key: 'code',
code_success_value: '0',
errId_logout_value: '21',
logout_function: 'reLogin',
code_message_map: {}
},
secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
shopmall_appid: "wxe10067a63c1856ac",
sign: {
appKey: "48e5e13229b82c1b4e6e8c96151f0637",
format: "json",
locale: "zh_CN",
source: "scrm-main",
v: "1.0.0",
},
vconsole: true
} }
\ No newline at end of file \ No newline at end of file
...@@ -36,11 +36,9 @@ Vue.prototype.to = function (name, params) { ...@@ -36,11 +36,9 @@ Vue.prototype.to = function (name, params) {
// 移动端适配 rem // 移动端适配 rem
// import 'lib-flexible/flexible.js' // import 'lib-flexible/flexible.js'
Vue.config.productionTip = false
import VConsole from 'vconsole' import VConsole from 'vconsole'
const isMock = true const isMock = ['prod'].includes(process.env.NODE_ENV)
fetchConfig(!isMock).then(res => { fetchConfig(!isMock).then(res => {
// 从配置服务器获取动态配置 // 从配置服务器获取动态配置
// 设置 js中可以访问 $cdn // 设置 js中可以访问 $cdn
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!