提交
This commit is contained in:
1 parent
47ef575524
commit
38383b35d9
92 files changed
+1051117
-37355
No files matched your search
@@ -7,6 +7,8 @@ export interface PortalHomeCardItem {
|
||||
path: string
|
||||
title: string
|
||||
icon?: string
|
||||
/** 与侧栏 meta.menuCode 一致,用于待办数字角标 */
|
||||
menuCode?: string
|
||||
}
|
||||
|
||||
export interface PortalHomeSection {
|
||||
@@ -64,10 +66,12 @@ function buildPinyinMeta(title: string): { py: string; abbr: string; letter: str
|
||||
function toCard(item: AppRouteRecord): PortalHomeCardItem | null {
|
||||
const path = String(item.meta?.activePath || item.path || '')
|
||||
if (!path) return null
|
||||
const menuCode = String(item.meta?.menuCode || '').trim()
|
||||
return {
|
||||
path,
|
||||
title: routeTitle(item),
|
||||
icon: item.meta?.icon ? String(item.meta.icon) : undefined
|
||||
icon: item.meta?.icon ? String(item.meta.icon) : undefined,
|
||||
menuCode: menuCode || undefined
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user