mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-02-11 15:49:53 +08:00
Feat: support open page
This commit is contained in:
parent
cadc0637a1
commit
762b90a95f
@ -277,6 +277,8 @@ router.beforeEach((to, from, next) => {
|
||||
toPagePermission
|
||||
);
|
||||
|
||||
if (!to.name) return next("/404");
|
||||
|
||||
if (toRoutePath.includes("_open_page") || toRoutePath === "/login") {
|
||||
return next();
|
||||
}
|
||||
@ -289,7 +291,7 @@ router.beforeEach((to, from, next) => {
|
||||
}
|
||||
}
|
||||
|
||||
if (to.name && toPagePermission <= userPermission) {
|
||||
if (toPagePermission <= userPermission) {
|
||||
next();
|
||||
} else {
|
||||
next("/404");
|
||||
|
Loading…
Reference in New Issue
Block a user