ui: 支持自定义导出文件名

This commit is contained in:
undefined committed 2021-05-27 23:16:18 +08:00
1 parent cdbbee8180
commit 0273bfe198
13 files changed
+50 -32

No files matched your search

+1 -1
View File
@@ -204,7 +204,7 @@ export class ProblemModel {
for (const pdoc of pdocs) {
try {
// eslint-disable-next-line no-await-in-loop
pdoc.config = await parseConfig(pdoc.config);
pdoc.config = await parseConfig(pdoc.config as string);
} catch (e) {
pdoc.config = `Cannot parse: ${e.message}`;
}
+2 -2
View File
@@ -8,7 +8,7 @@ import moment from 'moment';
import { STATUS } from './builtin';
import task from './task';
import problem from './problem';
import { RecordDoc, ContestInfo, ProblemConfig } from '../interface';
import { RecordDoc, ContestInfo, ProblemConfigFile } from '../interface';
import { ArgMethod, buildProjection, Time } from '../utils';
import { MaybeArray } from '../typeutils';
import * as bus from '../service/bus';
@@ -51,7 +51,7 @@ class RecordModel {
};
}
static async judge(domainId: string, rid: ObjectID, priority = 0, config: ProblemConfig = {}) {
static async judge(domainId: string, rid: ObjectID, priority = 0, config: ProblemConfigFile = {}) {
const rdoc = await RecordModel.get(domainId, rid);
let data = [];
if (rdoc.pid) {