mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-25 08:00:56 +00:00
@@ -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' });
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user