mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-18 11:26:10 +08:00
parent
a8faba3206
commit
5d4ab23d95
1 changed files with 2 additions and 6 deletions
|
@ -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' });
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue