shish hace 3 años
padre
commit
10c6c3c743
Se han modificado 2 ficheros con 5 adiciones y 3 borrados
  1. 4 3
      hdApp/src/admin/home/workbench.vue
  2. 1 0
      hdApp/src/mixins/globalMixins.js

+ 4 - 3
hdApp/src/admin/home/workbench.vue

@@ -205,7 +205,6 @@
 import { mapGetters, mapState } from "vuex";
 import { getWeixinId } from "@/api/invite";
 import { getStat,getStrokeCount } from '@/api/console'
-import { getShopInfo } from "@/utils/auth";
 import { consoleIndex } from "@/api/workbench";
 import NotLogin from "@/components/not-login";
 import autoUpdateMixins from "@/mixins/autoUpdate";
@@ -411,12 +410,14 @@ export default {
 
         getWeixinId().then(res => {
           this.getappIdList = res.data
-        });
+        })
+
         // #ifdef MP-WEIXIN
         this.isMini = 1
         // #endif
+
         let that = this
-          consoleIndex({isMini:this.isMini}).then(res => {
+        consoleIndex({isMini:this.isMini}).then(res => {
           this.data = res.data;
         })
 

+ 1 - 0
hdApp/src/mixins/globalMixins.js

@@ -100,6 +100,7 @@ export default {
 							uni.setNavigationBarTitle({ title: res.name })
 						})
 						that.setUserShopAll()
+						that.init()
 					}
 				})
 			}