修改用户认证模式

This commit is contained in:
zhangjiabao 2024-12-25 10:10:22 +08:00
parent c959157609
commit 135c804703
1 changed files with 1 additions and 6 deletions

View File

@ -118,12 +118,7 @@ export const routerBeforeEach = async (to, from) => {
return true;
}
let path = to.path;
let CHECK;
if (path == '/system' || path == '/localSystem' || path == '/localTemplate') {
CHECK = await check();
} else {
CHECK = (await checkRole(['systemAdmin'])) ? true : false;
}
let CHECK = await check();
if (CHECK) {
if (!to.name) {
let array = await router.getRoutes();