feat: add portal home launcher, favorites UI, and WorkTab overflow eviction

Replace top-bar module navigation with a card home page, persist favorites via API, reopen favorite tabs on cold login, and enable portal multi-tabs with overflow-based eviction.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-08-08 12:06:49 +08:00
1 parent 7898d65437
commit 2df2ef0808
17 files changed
+2242 -157

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
import request from '@/utils/http'
export interface MenuFavoriteItem {
id: string
path: string
orderNum?: number
createTime?: string
}
export function fetchMenuFavorites() {
return request.get<MenuFavoriteItem[]>({
url: '/web/admin/menu-favorites'
})
}
export function fetchAddMenuFavorite(path: string) {
return request.post<MenuFavoriteItem>({
url: '/web/admin/menu-favorites',
data: { path }
})
}
export function fetchRemoveMenuFavorite(path: string) {
return request.delete<{ path: string }>({
url: '/web/admin/menu-favorites',
data: { path }
})
}