ui: 支持客观题配置

This commit is contained in:
undefined committed 2021-04-07 17:29:56 +08:00
1 parent cb91c6ba71
commit ec4971d213
7 files changed
+179 -5

No files matched your search

+3
View File
@@ -62,6 +62,9 @@ export class ProblemModel {
if (pid) args.pid = pid;
await bus.serial('problem/before-add', args);
const result = await document.add(domainId, content, owner, document.TYPE_PROBLEM, docId, null, null, args);
args.content = content;
args.owner = owner;
args.docType = document.TYPE_PROBLEM;
await bus.emit('problem/add', args, result);
return result;
}