From 8da730762b6ac91c7e4583fa78956865abd248f1 Mon Sep 17 00:00:00 2001 From: Mars <3361409208a@gmail.com> Date: Thu, 18 Jun 2026 16:45:01 +0800 Subject: [PATCH] =?UTF-8?q?perf(admin):=20=E5=AE=9E=E7=8E=B0=E5=88=87?= =?UTF-8?q?=E9=A1=B5=E5=8D=B3=E6=97=B6=E5=AF=BC=E8=88=AA=E4=B8=8E=E5=88=97?= =?UTF-8?q?=E8=A1=A8=20loading=20=E5=A3=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 非阻塞 session 刷新、侧边栏 chunk 预取、KeepAlive 对齐,以及按 tab 延迟加载重型列表页。 --- apps/admin/src/components/AuditLogTable.vue | 17 +++-- apps/admin/src/composables/useStaleList.ts | 27 ++++++++ apps/admin/src/layouts/ManageLayout.vue | 9 ++- apps/admin/src/router/index.ts | 17 ++--- apps/admin/src/utils/route-prefetch.ts | 25 +++++++ apps/admin/src/views/AgentManager.vue | 77 +++++++++++++++------ apps/admin/src/views/Audit.vue | 2 + apps/admin/src/views/Bets.vue | 31 ++++----- apps/admin/src/views/Cashback.vue | 13 ++-- apps/admin/src/views/Contents.vue | 9 ++- apps/admin/src/views/DepositManage.vue | 2 + apps/admin/src/views/DepositOrders.vue | 15 ++-- apps/admin/src/views/FinanceLogs.vue | 25 +++++-- apps/admin/src/views/Matches.vue | 19 ++--- apps/admin/src/views/MatchesOutrights.vue | 13 ++-- apps/admin/src/views/MediaLibrary.vue | 19 +++-- apps/admin/src/views/StaffManage.vue | 11 +-- apps/admin/src/views/agent/Bets.vue | 15 ++-- apps/admin/src/views/agent/Players.vue | 50 ++++++++++--- apps/admin/vite.config.ts | 4 ++ docs/admin-page-switch-performance.md | 38 +++++++++- 21 files changed, 321 insertions(+), 117 deletions(-) create mode 100644 apps/admin/src/composables/useStaleList.ts create mode 100644 apps/admin/src/utils/route-prefetch.ts diff --git a/apps/admin/src/components/AuditLogTable.vue b/apps/admin/src/components/AuditLogTable.vue index 6ce4f79..a127bf5 100644 --- a/apps/admin/src/components/AuditLogTable.vue +++ b/apps/admin/src/components/AuditLogTable.vue @@ -1,5 +1,5 @@ diff --git a/apps/admin/src/views/Bets.vue b/apps/admin/src/views/Bets.vue index d179ada..01dcd20 100644 --- a/apps/admin/src/views/Bets.vue +++ b/apps/admin/src/views/Bets.vue @@ -1,7 +1,8 @@