明树Git Lab

Commit a3623380 authored by zfp1's avatar zfp1

update

parent aaa1b3f6
Pipeline #104378 passed with stage
in 3 seconds
......@@ -234,7 +234,7 @@ async function listResourceAll(req, res, next) {
],
}
)
let obj = [];
let obj = {};
for (let index = 0; index < datas.length; index++) {
let element = datas[index];
element = element.toJSON()
......@@ -242,7 +242,7 @@ async function listResourceAll(req, res, next) {
if (element.type == 2) {
element.resourcesInfos = utils.buildTree2(element.resourcesInfos, 'code', 'parentCode');
}
obj[element.key] = element.resourceInfos || [] //{type: element.type, resourceInfos: element.resourceInfos || []};
obj[element.key] = element.resourcesInfos || [];
}
return res.sendData(obj)
} catch (error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment