fix: Fix node switching style issues (#9641)

This commit is contained in:
ssongliu 2025-07-24 11:30:08 +08:00 committed by GitHub
parent 0daf0d690c
commit 0ca11e2b88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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