Commit b49c5d28 by 杨明

fixed

1 parent 356b4e9e
......@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-02-22 16:13:36
* @LastEditTime: 2023-03-06 22:25:22
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
let config = require("./conf.js");
......@@ -15,14 +15,19 @@ export const fetchConfig = function (isEnv = true) {
Object.assign(request, { timeout });
return Promise.resolve(config);
}
// return window.fetch('https://oss-config.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/config', {}).then(res => res.json()) //生产
return window
.fetch(
"https://oss-config.dev.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/config",
"https://oss-config.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/config",
{}
)
.then((res) => res.json()); //测试
.then((res) => res.json()); //生产
// return window
// .fetch(
// "https://oss-config.dev.glsx.com.cn/mock/618cb9331072f92988f05a23/wx/config",
// {}
// )
// .then((res) => res.json()); //测试
};
export const cfg = {
install(vue, config) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!