let val = JSON.stringify(res.data);
// \是转义用的 把,"children":[]全部删掉
let result = val.replace(/,"children":\[]/g, '');
tree.value = JSON.parse(result);
12-02
02-17
1125
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountBlack.png)
09-17
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交