let val = JSON.stringify(res.data);
// \是转义用的 把,"children":[]全部删掉
let result = val.replace(/,"children":\[]/g, '');
tree.value = JSON.parse(result);
02-17
1140
09-17
let val = JSON.stringify(res.data);
// \是转义用的 把,"children":[]全部删掉
let result = val.replace(/,"children":\[]/g, '');
tree.value = JSON.parse(result);