mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: 修复pretest结果不回显的问题
This commit is contained in:
1 parent
25570d6275
commit
cce3b3a745
6 files changed
+69
-39
No files matched your search
@@ -295,9 +295,7 @@ export class ProblemPretestHandler extends ProblemDetailHandler {
|
||||
|
||||
export class ProblemPretestConnectionHandler extends ConnectionHandler {
|
||||
pid: string;
|
||||
|
||||
domainId: string;
|
||||
|
||||
dispose: bus.Disposable;
|
||||
|
||||
@param('pid', Types.String)
|
||||
@@ -316,12 +314,6 @@ export class ProblemPretestConnectionHandler extends ConnectionHandler {
|
||||
|| rdoc.pid.toString() !== this.pid
|
||||
|| rdoc.domainId !== this.domainId
|
||||
) return;
|
||||
rdoc.compilerTexts = [];
|
||||
rdoc.judgeTexts = [];
|
||||
// @ts-ignore
|
||||
rdoc.testCases = rdoc.testCases.map((c) => ({
|
||||
status: c.status,
|
||||
}));
|
||||
// TODO handle update
|
||||
if (rdoc.contest) return;
|
||||
this.send({ rdoc });
|
||||
|
||||
Reference in new issue
Block a user