|
@ -65,7 +65,7 @@ const login = async function () { |
|
|
// 获取第一个可访问的菜单 |
|
|
// 获取第一个可访问的菜单 |
|
|
const firstMenu = findFirstAccessibleMenu(filteredMenu) |
|
|
const firstMenu = findFirstAccessibleMenu(filteredMenu) |
|
|
// 获取第一个可访问的菜单的 path |
|
|
// 获取第一个可访问的菜单的 path |
|
|
const redirectPath = firstMenu ? getRoutePath(firstMenu) : '/noPermissionPage' |
|
|
|
|
|
|
|
|
const redirectPath = firstMenu ? getRoutePath(firstMenu) : '/noPermission' |
|
|
// 跳转 |
|
|
// 跳转 |
|
|
router.push(redirectPath) |
|
|
router.push(redirectPath) |
|
|
|
|
|
|
|
|