style: Optimize node switching transition effects (#9560)

Refs #9556
This commit is contained in:
ssongliu 2025-07-18 11:39:23 +08:00 committed by GitHub
parent a8faba3206
commit 5d4ab23d95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -169,9 +169,7 @@ const changeNode = (command: string) => {
if (command == 'local') { if (command == 'local') {
globalStore.currentNode = command || 'local'; globalStore.currentNode = command || 'local';
globalStore.currentNodeAddr = ''; globalStore.currentNodeAddr = '';
router.push({ name: 'home' }).then(() => { router.push({ name: 'home' });
window.location.reload();
});
return; return;
} }
for (const item of nodes.value) { for (const item of nodes.value) {
@ -190,9 +188,7 @@ const changeNode = (command: string) => {
} }
globalStore.currentNode = command || 'local'; globalStore.currentNode = command || 'local';
globalStore.currentNodeAddr = item.addr; globalStore.currentNodeAddr = item.addr;
router.push({ name: 'home' }).then(() => { router.push({ name: 'home' });
window.location.reload();
});
} }
} }
}; };