fix: Node switchover information Added the node mode (#8347)

This commit is contained in:
ssongliu 2025-04-08 15:47:53 +08:00 committed by GitHub
parent 45dadc60e4
commit a5de96e08a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View file

@ -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;
}

View file

@ -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;