路由修改

This commit is contained in:
zoujiandong 2023-07-21 13:06:16 +08:00
parent e0766092b8
commit d7db3c234f

View File

@ -90,7 +90,13 @@ router.beforeEach(async(to, from, next) => {
const menuList= permissionStore.menuList;
next({ path: menuList[0].children[0].path });
} else {
next();
if(to.path=="/" || to.path=="/admin"){
const menuList= permissionStore.menuList;
next({ path: menuList[0].children[0].path });
}else{
next();
}
}
}