Commit c180ccef by 李伟康

切换生产mock

1 parent bf50dac5
...@@ -14,9 +14,10 @@ export const fetchConfig = function(isEnv = true) { ...@@ -14,9 +14,10 @@ export const fetchConfig = function(isEnv = true) {
let { request } = config let { request } = config
Object.assign(request, { timeout }) Object.assign(request, { timeout })
return Promise.resolve(config) return Promise.resolve(config)
} }
/**测试mock*/ return window.fetch('https://oss-config.dev.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-sop-config', {}).then(res => res.json()) // /**测试mock*/ return window.fetch('https://oss-config.dev.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-sop-config', {}).then(res => res.json())
/**生产mock*/ // return window.fetch('https://oss-config.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-sop-config', {}).then(res => res.json()) /**生产mock*/ return window.fetch('https://oss-config.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-sop-config', {}).then(res => res.json())
} }
export const cfg = { export const cfg = {
install(vue, config) { install(vue, config) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!