config1.ts
686 Bytes
/*
* @Description: 配置
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 2023-05-24 14:27:33
*/
const fetchConfig1 = function (isEnv = true) {
// return window.fetch('http://oss-config.dev.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/djposter-config', {}).then(res => res.json())
// return window.fetch('https://oss-config.test.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/djposter-config', {}).then(res => res.json())
return window.fetch('https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=djposter-config').then(res => res.json())
}
// const $mockConfig = await fetchConfig()
export default fetchConfig1