管理、商家,添加删除秒杀商品接口,管理端切换账号菜单权限不生效问题,代码优化

This commit is contained in:
mabo
2021-08-11 18:47:59 +08:00
parent 3e505a8a4e
commit e9163e4247
13 changed files with 433 additions and 844 deletions

View File

@@ -132,6 +132,7 @@ export default {
// 退出登录
else if (name === "loginOut") {
this.$store.commit("logout", this);
this.$store.commit('setAdded', false);
this.setStore("accessToken", "");
this.setStore("refreshToken", "");
this.$router.push({ path: "/login" });
@@ -167,7 +168,6 @@ export default {
},
watch: {
$route(to, from) {
this.$store.commit("setCurrentPageName", to.name);
this.checkTag(to.name);
localStorage.currentPageName = to.name;
}