config.ts
659 Bytes
/*
* @Description: 配置
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 2023-06-14 10:12:30
*/
const fetchConfig = function (isEnv = true) {
// return window.fetch('https://oss-config.dev.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/h5-config', {}).then(res => res.json())
// return window.fetch('https://oss-config.test.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/h5-config', {}).then(res => res.json())
return window.fetch('https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=single-posters').then(res => res.json())
}
// const $mockConfig = await fetchConfig()
export default fetchConfig