Skip to content

Commit 305f7d3

Browse files
author
L. Yeung
committed
修正提交结果页面耗时显示
1 parent 45a9c6a commit 305f7d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/service/SubmissionService.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ class SubmissionService extends BaseWebViewService {
2323
this.result = this.parseResult(resultString);
2424

2525
const temp = this.getSubmitEvent();
26-
if (temp?.accepted && temp?.sub_type == "submit") {
27-
this.result["costTime"] = [`耗时${statusBarTimeService.getCostTimeStr()}`];
26+
let costTime = statusBarTimeService.getCostTimeStr();
27+
if (temp?.accepted && temp?.sub_type == "submit" && costTime) {
28+
this.result["costTime"] = [`耗时 ${costTime}`];
2829
}
2930
this.showWebviewInternal();
3031
this.showKeybindingsHint();

0 commit comments

Comments
 (0)