From 0cf20527a437d49fa07713f71ca65317af83c8fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E8=87=AA=E8=BE=BE?= <980324341@qq.com> Date: Wed, 9 Sep 2026 18:53:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E8=8F=9C=E5=8D=95=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E5=81=B6=E5=8F=91=E6=97=A0=E5=93=8D=E5=BA=94=E4=B8=89?= =?UTF-8?q?=E5=A4=84=E6=A0=B9=E5=9B=A0=E2=80=94=E2=80=94=E2=91=A0=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E6=87=92=E5=8A=A0=E8=BD=BDchunk=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E8=A2=AB=E9=9D=99=E9=BB=98=E5=90=9E=E6=8E=89(=E6=96=B0?= =?UTF-8?q?=E5=A2=9EonError=E8=87=AA=E5=8A=A8=E6=95=B4=E9=A1=B5=E9=87=8D?= =?UTF-8?q?=E8=BD=BD+=E4=BF=9D=E9=99=A9=E4=B8=9D=E9=98=B2=E5=BE=AA?= =?UTF-8?q?=E7=8E=AF)=20=E2=91=A1=E9=A6=96=E9=A1=B5=E5=85=A5=E5=8F=A3?= =?UTF-8?q?=E8=A2=AB=E6=9D=83=E9=99=90=E6=8E=A5=E5=8F=A3=E9=98=BB=E5=A1=9E?= =?UTF-8?q?(=E6=94=B9=E4=B9=90=E8=A7=82=E6=98=BE=E7=A4=BA+=E7=BC=93?= =?UTF-8?q?=E5=AD=98TTL10=E5=88=86=E9=92=9F+=E8=B6=85=E6=97=B630s=E2=86=92?= =?UTF-8?q?8s)=20=E2=91=A2=E8=8F=9C=E5=8D=95hover=E9=A2=84=E5=8F=96?= =?UTF-8?q?=E7=9B=AE=E6=A0=87=E9=A1=B5chunk(=E5=B7=A5=E5=85=B7=E5=8D=A1?= =?UTF-8?q?=E7=89=87/=E5=B7=A5=E4=BD=9C=E6=B5=81=E6=AD=A5=E9=AA=A4/?= =?UTF-8?q?=E9=A1=B6=E9=83=A8=E5=AF=BC=E8=88=AA)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/amazon/AmazonConsolePage.vue | 9 ++++- .../pages/brand/components/BrandTopBar.vue | 11 +++++- .../src/pages/home/DesktopHomePage.vue | 24 ++++++------ frontend-vue/src/router/index.ts | 37 ++++++++++++++++++ .../shared/api/types/modules/permission.ts | 38 ++++++++++++++++++- frontend-vue/src/shared/route-prefetch.ts | 34 +++++++++++++++++ 6 files changed, 139 insertions(+), 14 deletions(-) create mode 100644 frontend-vue/src/shared/route-prefetch.ts diff --git a/frontend-vue/src/pages/amazon/AmazonConsolePage.vue b/frontend-vue/src/pages/amazon/AmazonConsolePage.vue index 1457ce8b..5b4a8c66 100644 --- a/frontend-vue/src/pages/amazon/AmazonConsolePage.vue +++ b/frontend-vue/src/pages/amazon/AmazonConsolePage.vue @@ -69,6 +69,7 @@ :class="{ 'workflow-step--disabled': !step.toolId || !stepHref(step.toolId) }" :style="{ '--gc': currentGroup.color }" @click="onWorkflowStepClick(step)" + @mouseenter="prefetchRouteChunk(router, stepHref(step.toolId))" > {{ index + 1 }} {{ step.name }} @@ -88,7 +89,7 @@