From 222548c677c84b3f4c4579a0f3814f8172332156 Mon Sep 17 00:00:00 2001 From: Rynco Maekawa Date: Mon, 12 Apr 2021 21:15:54 +0800 Subject: [PATCH] fix: exceptions thrown in web --- .../default/job-view/job-view.component.ts | 2 +- .../test-suite-view.component.html | 161 +++++++++--------- 2 files changed, 84 insertions(+), 79 deletions(-) diff --git a/web/src/views/default/job-view/job-view.component.ts b/web/src/views/default/job-view/job-view.component.ts index f68112c0..be13c9d1 100644 --- a/web/src/views/default/job-view/job-view.component.ts +++ b/web/src/views/default/job-view/job-view.component.ts @@ -161,7 +161,7 @@ export class JobViewComponent implements OnInit, OnChanges, OnDestroy { .map(([key, val]) => [ key, val, - this.flatCaseMap?.get(key).baseScore ?? 1, + this.flatCaseMap?.get(key)?.baseScore ?? 1, ]); } diff --git a/web/src/views/default/test-suite-view/test-suite-view.component.html b/web/src/views/default/test-suite-view/test-suite-view.component.html index 1215009c..76aaa6f9 100644 --- a/web/src/views/default/test-suite-view/test-suite-view.component.html +++ b/web/src/views/default/test-suite-view/test-suite-view.component.html @@ -14,90 +14,95 @@

{{ suite?.title }}

-
-
-
-

提交评测

-
- - -
-
-

参与的测试组

-
-
- - {{ group.key }} - + +
+
+
+

提交评测

+
+ + +
+
+

参与的测试组

+
+
+ + {{ group.key }} + +
-
-
- -
- 提交 +
+ +
+ 提交 +
-
-
- -

测试描述

-
- -
-
-
-
-
-

评测记录

- -
没有评测记录
-
- -
- 加载更多 + +

测试描述

+
+ +
+
-
没了
-
+
+
+

评测记录

+ +
没有评测记录
+
+ + +
+ 加载更多 +
+
没了
+
+
-
+ + +
正在加载测试集 {{ id }}
+