|
@@ -233,14 +233,16 @@ export default {
|
|
|
title: "加载中",
|
|
title: "加载中",
|
|
|
});
|
|
});
|
|
|
try {
|
|
try {
|
|
|
- let { data } = await toggleShop({ shopId: this.shopId });
|
|
|
|
|
- this.$store.commit("setLoginInfo", {
|
|
|
|
|
- ...this.getLoginInfo,
|
|
|
|
|
- shopId: data.shopId, // 门店id
|
|
|
|
|
- shopAdminId: data.id, //员工id
|
|
|
|
|
- });
|
|
|
|
|
- getUser(true);
|
|
|
|
|
- this.init();
|
|
|
|
|
|
|
+ await toggleShop({ shopId: this.shopId })
|
|
|
|
|
+
|
|
|
|
|
+ //这个切换得更彻底
|
|
|
|
|
+ this.$store.commit("setLoginInfo", {})
|
|
|
|
|
+ this.$util.pageTo({url: "/admin/home/me",type: 3})
|
|
|
|
|
+
|
|
|
|
|
+ // this.$store.commit("setLoginInfo", {...this.getLoginInfo,shopId: data.shopId,shopAdminId: data.id})
|
|
|
|
|
+ // getUser(true)
|
|
|
|
|
+ // this.init()
|
|
|
|
|
+
|
|
|
} finally {
|
|
} finally {
|
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
|
}
|
|
}
|