mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-18 11:26:10 +08:00
fix: Fix node switching style issues (#9641)
This commit is contained in:
parent
0daf0d690c
commit
0ca11e2b88
1 changed files with 3 additions and 0 deletions
|
@ -87,6 +87,7 @@ import { ref, watch } from 'vue';
|
|||
import bus from '@/global/bus';
|
||||
import { logOutApi } from '@/api/modules/auth';
|
||||
import router from '@/routers';
|
||||
import { loadProductProFromDB } from '@/utils/xpack';
|
||||
|
||||
const filter = ref();
|
||||
const globalStore = GlobalStore();
|
||||
|
@ -176,6 +177,7 @@ const changeNode = (command: string) => {
|
|||
if (command == 'local') {
|
||||
globalStore.currentNode = command || 'local';
|
||||
globalStore.currentNodeAddr = '';
|
||||
loadProductProFromDB();
|
||||
router.push({ name: 'home' });
|
||||
return;
|
||||
}
|
||||
|
@ -195,6 +197,7 @@ const changeNode = (command: string) => {
|
|||
}
|
||||
globalStore.currentNode = command || 'local';
|
||||
globalStore.currentNodeAddr = item.addr;
|
||||
loadProductProFromDB();
|
||||
router.push({ name: 'home' });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue