fix: bug#32748【仪表盘】【2.2/master】当集群部署时,仪表盘获取的集群节点展示需修改为id

This commit is contained in:
leiqiaochu 2025-01-10 16:32:21 +08:00
parent 099db8c2dc
commit 5b76b078d2
2 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ onMounted(() => {
serverNode().then((resp: any) => { serverNode().then((resp: any) => {
if (resp.success) { if (resp.success) {
serverNodeOptions.value = resp.result.map((item: any) => ({ serverNodeOptions.value = resp.result.map((item: any) => ({
label: item.name, label: item.id,
value: item.id, value: item.id,
})); }));
if (serverNodeOptions.value.length) { if (serverNodeOptions.value.length) {

View File

@ -104,7 +104,7 @@ export default defineConfig(({ mode}) => {
// target: 'http://192.168.32.207:8844', // 刘本地 // target: 'http://192.168.32.207:8844', // 刘本地
// target: 'http://192.168.32.187:8844', // 谭本地 // target: 'http://192.168.32.187:8844', // 谭本地
// target: 'http://192.168.33.66:8844', // 苟本地 // target: 'http://192.168.33.66:8844', // 苟本地
// target: 'http://192.168.35.155:8844', // 王本地 // target: 'http://192.168.32.137:8844', // 王本地
ws: 'ws://192.168.33.46:8844', ws: 'ws://192.168.33.46:8844',
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '') rewrite: (path) => path.replace(/^\/api/, '')