From fba46be47a880201a5498a9c682ce617be09aa08 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Fri, 1 Aug 2025 10:47:22 +0800 Subject: [PATCH] fix: Fix overview page refresh issue (#9785) Refs #9756 #9769 --- .../components/Sidebar/components/Collapse.vue | 4 ++-- frontend/src/views/home/index.vue | 18 ++++++++++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/frontend/src/layout/components/Sidebar/components/Collapse.vue b/frontend/src/layout/components/Sidebar/components/Collapse.vue index 7f44bce56..e74ba533c 100644 --- a/frontend/src/layout/components/Sidebar/components/Collapse.vue +++ b/frontend/src/layout/components/Sidebar/components/Collapse.vue @@ -178,7 +178,7 @@ const changeNode = (command: string) => { globalStore.currentNode = command || 'local'; globalStore.currentNodeAddr = ''; loadProductProFromDB(); - router.push({ name: 'home' }); + router.push({ name: 'home', query: { t: Date.now() } }); return; } for (const item of nodes.value) { @@ -198,7 +198,7 @@ const changeNode = (command: string) => { globalStore.currentNode = command || 'local'; globalStore.currentNodeAddr = item.addr; loadProductProFromDB(); - router.push({ name: 'home' }); + router.push({ name: 'home', query: { t: Date.now() } }); } } }; diff --git a/frontend/src/views/home/index.vue b/frontend/src/views/home/index.vue index a186ebdf1..b038f714b 100644 --- a/frontend/src/views/home/index.vue +++ b/frontend/src/views/home/index.vue @@ -1,5 +1,5 @@