mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: 支持客观题配置
This commit is contained in:
1 parent
cb91c6ba71
commit
ec4971d213
7 files changed
+179
-5
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user