Commit 66696011 by 程默

fix

parent cb11309b
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
"projectname": "mayi-mp-shop", "projectname": "mayi-mp-shop",
"simulatorType": "wechat", "simulatorType": "wechat",
"simulatorPluginLibVersion": {}, "simulatorPluginLibVersion": {},
"libVersion": "2.16.1",
"condition": { "condition": {
"search": { "search": {
"list": [] "list": []
......
...@@ -4,8 +4,8 @@ export default { ...@@ -4,8 +4,8 @@ export default {
// NODE_ENV // NODE_ENV
let extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {}; let extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {};
console.log(extConfig,'-----------extConfig') console.log(extConfig,'-----------extConfig')
if (process.env.NODE_ENV == "development" || JSON.stringify(extConfig) == "{}") { if (JSON.stringify(extConfig) == "{}") {
// extConfig = { mixid: "antgood" }; extConfig = process.env.NODE_ENV == "development" ? { mixid: "antgood" }:{ mixid: "ant" };
} }
this.$store.commit("setExtConfig", extConfig.mixid); this.$store.commit("setExtConfig", extConfig.mixid);
// 调用API从本地缓存中获取数据 // 调用API从本地缓存中获取数据
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment