Commit c9542946 by 胡悦

更换配置地址

1 parent b31ccc5a
const fetchConfig = function (isEnv = true) {
return window.fetch('http://oss-config.dev.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/integral-config', {}).then(res => res.json())
return window.fetch('https://oss-config.test.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/integral-config', {}).then(res => res.json())
}
// const $mockConfig = await fetchConfig()
export default fetchConfig
\ No newline at end of file
......@@ -73,6 +73,7 @@ service.interceptors.response.use((r: AxiosResponse) => {
Toast(res.message || res.msg || '出错了,请联系管理员')
break
}
if (returnAll) return res
return res[data_key]
}, error => {
Toast(error.message)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!