@@ -167,6 +167,9 @@ export function handleTree(data, id, parentId, children) {
for (let d of data) {
let id = d[config.id];
childrenListMap[id] = d;
+ if (!d[config.childrenList]) {
+ d[config.childrenList] = [];
+ }
}
@@ -216,7 +219,7 @@ export function getNormalPath(p) {
if (res[res.length - 1] === '/') {
return res.slice(0, res.length - 1)
- return res;
+ return res
// 验证是否为blob格式