shish 4 年 前
コミット
9d1e3b1ad4
1 ファイル変更4 行追加3 行削除
  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){
       changeShop(id){
+        let that = this
         switchGhsShop({shopId:id}).then(res=>{
         switchGhsShop({shopId:id}).then(res=>{
           //有多处相似地方,请全项目搜索about_store_clear
           //有多处相似地方,请全项目搜索about_store_clear
 					// #ifdef MP-WEIXIN
 					// #ifdef MP-WEIXIN
@@ -47,9 +48,9 @@ export default {
 					that.$util.pageTo({url: "/admin/home/workbench",type: 3})
 					that.$util.pageTo({url: "/admin/home/workbench",type: 3})
 					// #endif
 					// #endif
 					// #ifdef APP-PLUS
 					// #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()
 					plus.runtime.restart()
 					// #endif
 					// #endif
         })
         })