mirror of
https://github.com/yangzongzhuan/RuoYi-Cloud-Vue3.git
synced 2025-06-06 10:11:50 +00:00
优化代码
This commit is contained in:
parent
01a365fccd
commit
efb41d2f6e
@ -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] = [];
|
||||
}
|
||||
}
|
||||
|
||||
for (let d of data) {
|
||||
@ -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格式
|
||||
|
Loading…
Reference in New Issue
Block a user