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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "2.21.17",
|
||||
"version": "2.21.18",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "dist/loader.js",
|
||||
"typings": "dist/loader.d.ts",
|
||||
@@ -11,7 +11,7 @@
|
||||
"node": ">=14"
|
||||
},
|
||||
"dependencies": {
|
||||
"@hydrooj/utils": "^1.0.0",
|
||||
"@hydrooj/utils": "^1.0.1",
|
||||
"adm-zip": "^0.5.5",
|
||||
"ansi_up": "^5.0.0",
|
||||
"cookies": "^0.8.0",
|
||||
|
||||
@@ -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