mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
题目搜索,收藏功能
This commit is contained in:
1 parent
a248425db6
commit
441eeadaf3
23 files changed
+158
-97
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user