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:
1 parent
7898d65437
commit
2df2ef0808
17 files changed
+2242
-157
No files matched your search
@@ -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 }
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user