Browse Source

切换门店

shish 4 năm trước cách đây
mục cha
commit
9d1e3b1ad4
1 tập tin đã thay đổi với 4 bổ sung3 xóa
  1. 4 3
      ghsApp/src/admin/shop/changeShop.vue

+ 4 - 3
ghsApp/src/admin/shop/changeShop.vue

@@ -40,6 +40,7 @@ export default {
           })
       },
       changeShop(id){
+        let that = this
         switchGhsShop({shopId:id}).then(res=>{
           //有多处相似地方,请全项目搜索about_store_clear
 					// #ifdef MP-WEIXIN
@@ -47,9 +48,9 @@ export default {
 					that.$util.pageTo({url: "/admin/home/workbench",type: 3})
 					// #endif
 					// #ifdef APP-PLUS
-					this.$store.commit("setLoginInfo", {})
-					this.$store.commit("setDictionariesInfo", {})
-					this.$store.commit("setMyShopInfo", {})
+					that.$store.commit("setLoginInfo", {})
+					that.$store.commit("setDictionariesInfo", {})
+					that.$store.commit("setMyShopInfo", {})
 					plus.runtime.restart()
 					// #endif
         })