config.ts
389 Bytes
/*
* @Description: 配置
* @Author: huyue
* @Date: 2022-10-10 10:54:14
* @LastEditors: huyue
* @LastEditTime: 2022-10-14 16:45:59
*/
const fetchConfig = function (isEnv = true) {
return window.fetch('https://oss-config.test.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/h5-config', {}).then(res => res.json())
}
// const $mockConfig = await fetchConfig()
export default fetchConfig