bugfix: 修改递归少传参数
This commit is contained in:
parent
840c793f13
commit
8621443416
@ -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
|
||||
}
|
||||
|
||||
@ -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/, '')
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user