This commit is contained in:
张成
2025-10-09 18:43:34 +08:00
parent fffdb69815
commit 910992e192
2 changed files with 38 additions and 4 deletions

View File

@@ -94,8 +94,10 @@ export default {
// 保存权限菜单
commit('setAuthorityMenus', JSON.stringify(menus))
// 生成路由菜单
let mainMenu = uiTool.getRoutes(Main, ParentView, Page404)
// 生成路由菜单(传递 HomePage 组件)
// 从框架导出的组件中获取 HomePage
const HomePage = window.framework && window.framework.HomePage ? window.framework.HomePage : null
let mainMenu = uiTool.getRoutes(Main, ParentView, Page404, HomePage)
console.log('生成的主菜单:', mainMenu)
if (mainMenu && mainMenu.children) {