Commit bf6ab7d5 by 杨北旺

测试配置中心

1 parent 51cfc04a
...@@ -14,7 +14,7 @@ import { Http,utils } from 'glsx-common' ...@@ -14,7 +14,7 @@ import { Http,utils } from 'glsx-common'
export const fetchConfig = function (common) { export const fetchConfig = function (common) {
console.log(common); console.log(common);
console.log(utils); console.log(utils);
let params = { moduleName: 'presale', mockUrl: 'https://oss-config.dev.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } } let params = { moduleName: 'presale', mockUrl: 'https://oss-config.dev.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config',env:'test', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
return utils.getConfig(params) return utils.getConfig(params)
// if (isEnv) { // if (isEnv) {
// let { request } = cfg // let { request } = cfg
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!