File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments