shish 4 лет назад
Родитель
Сommit
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){
+        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
         })