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') {
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' });
}
}
};