Skip to content

Commit 2a5524a

Browse files
authored
Merge pull request #155 from lewis-yeung/develop
修正提交结果页面耗时显示
2 parents 45a9c6a + 305f7d3 commit 2a5524a

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)