mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-18 00:45:54 +08:00
管理、商家,添加删除秒杀商品接口,管理端切换账号菜单权限不生效问题,代码优化
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user