This commit is contained in:
wuzilong committed 2026-10-05 12:57:51 +08:00
1 parent 59fafb92d5
commit 6abfb6e251
1512 files changed
+1565614 -275592

No files matched your search

+2 -5
View File
@@ -55,11 +55,8 @@ export const useMenuStore = defineStore('menuStore', () => {
*/
const setMenuList = (list: AppRouteRecord[]) => {
menuList.value = list
if (HOME_PAGE_PATH) {
setHomePath(HOME_PAGE_PATH)
} else {
setHomePath(getPortalDefaultHomePath(list) || getFirstMenuPath(list))
}
// 登录 / `#/` 默认落到侧栏「首页」之后的第一个业务菜单,而不是门户首页 /home
setHomePath(getPortalDefaultHomePath(list) || getFirstMenuPath(list) || HOME_PAGE_PATH)
}
/**