mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-20 12:27:18 +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 bus from '@/global/bus';
|
||||||
import { logOutApi } from '@/api/modules/auth';
|
import { logOutApi } from '@/api/modules/auth';
|
||||||
import router from '@/routers';
|
import router from '@/routers';
|
||||||
|
import { loadProductProFromDB } from '@/utils/xpack';
|
||||||
|
|
||||||
const filter = ref();
|
const filter = ref();
|
||||||
const globalStore = GlobalStore();
|
const globalStore = GlobalStore();
|
||||||
|
@ -176,6 +177,7 @@ const changeNode = (command: string) => {
|
||||||
if (command == 'local') {
|
if (command == 'local') {
|
||||||
globalStore.currentNode = command || 'local';
|
globalStore.currentNode = command || 'local';
|
||||||
globalStore.currentNodeAddr = '';
|
globalStore.currentNodeAddr = '';
|
||||||
|
loadProductProFromDB();
|
||||||
router.push({ name: 'home' });
|
router.push({ name: 'home' });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -195,6 +197,7 @@ const changeNode = (command: string) => {
|
||||||
}
|
}
|
||||||
globalStore.currentNode = command || 'local';
|
globalStore.currentNode = command || 'local';
|
||||||
globalStore.currentNodeAddr = item.addr;
|
globalStore.currentNodeAddr = item.addr;
|
||||||
|
loadProductProFromDB();
|
||||||
router.push({ name: 'home' });
|
router.push({ name: 'home' });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue