This commit is contained in:
zlwu committed 2026-06-14 09:14:11 +08:00
1 parent 5ad07c8cac
commit a79aee2614
61 files changed
+9220 -9348

No files matched your search

+5 -2
View File
@@ -278,9 +278,12 @@ async function handleDynamicRoutes(
// 2. 获取菜单数据
const menuList = await menuProcessor.getMenuList()
// 3. 验证菜单数据
// 3. 验证菜单数据:无可用菜单时跳转 403,而非当作系统错误
if (!menuProcessor.validateMenuList(menuList)) {
throw new Error('获取菜单列表失败,请重新登录')
routeInitInProgress = false
closeLoading()
next({ name: 'Exception403', replace: true })
return
}
// 4. 注册动态路由