From 5d4ab23d95ebd61fffba66ae2ef0f4a33d9746c9 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Fri, 18 Jul 2025 11:39:23 +0800 Subject: [PATCH] style: Optimize node switching transition effects (#9560) Refs #9556 --- .../src/layout/components/Sidebar/components/Collapse.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/frontend/src/layout/components/Sidebar/components/Collapse.vue b/frontend/src/layout/components/Sidebar/components/Collapse.vue index b02373e46..52eb4445a 100644 --- a/frontend/src/layout/components/Sidebar/components/Collapse.vue +++ b/frontend/src/layout/components/Sidebar/components/Collapse.vue @@ -169,9 +169,7 @@ const changeNode = (command: string) => { if (command == 'local') { globalStore.currentNode = command || 'local'; globalStore.currentNodeAddr = ''; - router.push({ name: 'home' }).then(() => { - window.location.reload(); - }); + router.push({ name: 'home' }); return; } for (const item of nodes.value) { @@ -190,9 +188,7 @@ const changeNode = (command: string) => { } globalStore.currentNode = command || 'local'; globalStore.currentNodeAddr = item.addr; - router.push({ name: 'home' }).then(() => { - window.location.reload(); - }); + router.push({ name: 'home' }); } } };