mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-21 21:07:30 +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') {
|
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();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue