From 86214434162d73ca00ca82d681ecf9800bac1750 Mon Sep 17 00:00:00 2001 From: zhanghao <774378400@qq.com> Date: Tue, 3 Mar 2026 15:26:58 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E4=BF=AE=E6=94=B9=E9=80=92=E5=BD=92?= =?UTF-8?q?=E5=B0=91=E4=BC=A0=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/flow.js | 2 +- vite.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/flow.js b/src/utils/flow.js index 1f4f35f..68474d7 100644 --- a/src/utils/flow.js +++ b/src/utils/flow.js @@ -66,7 +66,7 @@ const transformTree = (arr, parent = [], type) => { parent.push(currentNode); if (item.children?.length > 0) { - transformTree(item.children, currentNode.children); + transformTree(item.children, currentNode.children, type); } else { delete currentNode.children } diff --git a/vite.config.js b/vite.config.js index 2dd6539..3e3b7a3 100644 --- a/vite.config.js +++ b/vite.config.js @@ -36,7 +36,7 @@ export default defineConfig(({mode, command}) => { //赵 http://10.148.108.58:13080 // dev http://10.148.20.34:13080 // target: VITE_API_URL, - target: command === 'build' ? VITE_API_URL : 'http://192.168.0.21:13081', + target: command === 'build' ? VITE_API_URL : 'http://192.168.0.100:13080', changeOrigin: true, rewrite: (p) => p.replace(/^\/dev-api/, '') }