路由修改
This commit is contained in:
parent
e0766092b8
commit
d7db3c234f
@ -90,7 +90,13 @@ router.beforeEach(async(to, from, next) => {
|
|||||||
const menuList= permissionStore.menuList;
|
const menuList= permissionStore.menuList;
|
||||||
next({ path: menuList[0].children[0].path });
|
next({ path: menuList[0].children[0].path });
|
||||||
} else {
|
} else {
|
||||||
next();
|
if(to.path=="/" || to.path=="/admin"){
|
||||||
|
const menuList= permissionStore.menuList;
|
||||||
|
next({ path: menuList[0].children[0].path });
|
||||||
|
}else{
|
||||||
|
next();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user