From 305f7d3dfa1f9ef2b5977b9745ba64769c22501c Mon Sep 17 00:00:00 2001 From: "L. Yeung" Date: Wed, 25 Jan 2023 17:12:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=8F=90=E4=BA=A4=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E9=A1=B5=E9=9D=A2=E8=80=97=E6=97=B6=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/service/SubmissionService.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/service/SubmissionService.ts b/src/service/SubmissionService.ts index 51d4826..11a65be 100644 --- a/src/service/SubmissionService.ts +++ b/src/service/SubmissionService.ts @@ -23,8 +23,9 @@ class SubmissionService extends BaseWebViewService { this.result = this.parseResult(resultString); const temp = this.getSubmitEvent(); - if (temp?.accepted && temp?.sub_type == "submit") { - this.result["costTime"] = [`耗时${statusBarTimeService.getCostTimeStr()}`]; + let costTime = statusBarTimeService.getCostTimeStr(); + if (temp?.accepted && temp?.sub_type == "submit" && costTime) { + this.result["costTime"] = [`耗时 ${costTime}`]; } this.showWebviewInternal(); this.showKeybindingsHint();