Commit abcdb92c by 匡雅琴

修改至配置服务

1 parent 73c3b55a
...@@ -10,12 +10,12 @@ ...@@ -10,12 +10,12 @@
let config = require('./conf.js') let config = require('./conf.js')
let timeout = 30000 //超时时间 let timeout = 30000 //超时时间
export const fetchConfig = function (isEnv = true) { export const fetchConfig = function (isEnv = true) {
if (isEnv) { // if (isEnv) {
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/6352681802322627d6b83e8c/dj-data-view/config', {}).then(res => res.json()) /**测试mock */ return window.fetch('https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=dj-data-view', {}).then(res => res.json())
// return window.fetch('https://oss-config.test.glsx.com.cn/mock/62cbf569f5137cf37678b828/data-view/config', {}).then(res => res.json()) // return window.fetch('https://oss-config.test.glsx.com.cn/mock/62cbf569f5137cf37678b828/data-view/config', {}).then(res => res.json())
} }
export const cfg = { export const cfg = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!