题目搜索,收藏功能

This commit is contained in:
undefined committed 2020-06-24 13:39:32 +08:00
1 parent a248425db6
commit 441eeadaf3
23 files changed
+158 -97

No files matched your search

+7 -1
View File
@@ -236,7 +236,13 @@ async function discussionNode(src, report) {
const category = item[0];
const nodes = item[1];
for (const node of nodes || []) {
t.push(discussion.addNode(doc.domain_id, node.name, category));
if (node.pic) {
t.push(discussion.addNode(
doc.domain_id, node.name, category, { pic: node.pic },
));
} else {
t.push(discussion.addNode(doc.domain_id, node.name, category));
}
}
}
await Promise.all(t).catch((e) => e);