From f6b4979e7cb7b61fa0a982aa872c6eaea8662889 Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Wed, 5 Nov 2025 09:45:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A6=E4=B8=8B=E8=A7=92=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=EF=BC=8C=E6=A8=A1=E6=8B=9F=E5=BC=8F=E7=BC=96?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/layouts/components/Footer/index.vue | 10 +++++++++- .../src/views/plan/planList/components/planPopup.vue | 7 +++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/frontend/src/layouts/components/Footer/index.vue b/frontend/src/layouts/components/Footer/index.vue index 67acae0..dd146e5 100644 --- a/frontend/src/layouts/components/Footer/index.vue +++ b/frontend/src/layouts/components/Footer/index.vue @@ -72,7 +72,15 @@ const handelOpen = async (item: string, key: string) => { // 强制刷新页面 await tabsStore.closeMultipleTab() await initDynamicRouter() - await router.push({ path: '/home/index' }) + + // 只有当目标路径与当前路径不同时才跳转 + if (router.currentRoute.value.path !== '/home/index') { + await router.push({ path: '/home/index' }) + } else { + // 如果已在目标页面,手动触发组件更新 + window.location.reload() // 或者采用其他方式刷新数据 + } + }