bugfix: 修改递归少传参数

This commit is contained in:
zhanghao 2026-03-03 15:26:58 +08:00
parent 840c793f13
commit 8621443416
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

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