mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-30 18:56:20 +08:00
fix: Node switchover information Added the node mode (#8347)
This commit is contained in:
parent
45dadc60e4
commit
a5de96e08a
2 changed files with 3 additions and 0 deletions
|
|
@ -114,6 +114,7 @@ const changeNode = (command: string) => {
|
|||
}
|
||||
if (command == 'local') {
|
||||
globalStore.currentNode = command || 'local';
|
||||
globalStore.isOffline = false;
|
||||
location.reload();
|
||||
return;
|
||||
}
|
||||
|
|
@ -121,6 +122,7 @@ const changeNode = (command: string) => {
|
|||
if (item.name == command) {
|
||||
if (props.version == item.version) {
|
||||
globalStore.currentNode = command || 'local';
|
||||
globalStore.isOffline = item.isOffline;
|
||||
location.reload();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -337,6 +337,7 @@ const login = (formEl: FormInstance | undefined) => {
|
|||
menuStore.setMenuList([]);
|
||||
tabsStore.removeAllTabs();
|
||||
globalStore.currentNode = 'local';
|
||||
globalStore.isOffline = false;
|
||||
MsgSuccess(i18n.t('commons.msg.loginSuccess'));
|
||||
router.push({ name: 'home' });
|
||||
document.onkeydown = null;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue