Skip to content

Commit a5de96e

Browse files
authored
fix: Node switchover information Added the node mode (#8347)
1 parent 45dadc6 commit a5de96e

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

frontend/src/layout/components/Sidebar/components/Collapse.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,15 @@ const changeNode = (command: string) => {
114114
}
115115
if (command == 'local') {
116116
globalStore.currentNode = command || 'local';
117+
globalStore.isOffline = false;
117118
location.reload();
118119
return;
119120
}
120121
for (const item of nodes.value) {
121122
if (item.name == command) {
122123
if (props.version == item.version) {
123124
globalStore.currentNode = command || 'local';
125+
globalStore.isOffline = item.isOffline;
124126
location.reload();
125127
return;
126128
}

frontend/src/views/login/components/login-form.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ const login = (formEl: FormInstance | undefined) => {
337337
menuStore.setMenuList([]);
338338
tabsStore.removeAllTabs();
339339
globalStore.currentNode = 'local';
340+
globalStore.isOffline = false;
340341
MsgSuccess(i18n.t('commons.msg.loginSuccess'));
341342
router.push({ name: 'home' });
342343
document.onkeydown = null;

0 commit comments

Comments
 (0)