去掉token过期提示

This commit is contained in:
zoujiandong
2023-07-21 14:36:38 +08:00
parent 84892d810f
commit a1eefcbd15
2 changed files with 10 additions and 5 deletions
+5
View File
@@ -90,7 +90,12 @@ router.beforeEach(async(to, from, next) => {
const menuList= permissionStore.menuList;
next({ path: menuList[0].children[0].path });
} else {
if(to.path=="/" || to.path=="/admin"){
const menuList= permissionStore.menuList;
next({ path: menuList[0].children[0].path });
}else{
next();
}
}
}