From 2f1a299f279e3ee06fa6e8e8121db277cc43abb5 Mon Sep 17 00:00:00 2001 From: q4speed Date: Fri, 22 May 2020 17:56:19 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E5=BC=82=E5=B8=B8=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E5=AF=BC=E8=87=B4=E6=97=A0=E9=99=90=E5=BE=AA=E7=8E=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/business/components/api/report/ApiReportView.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/business/components/api/report/ApiReportView.vue b/frontend/src/business/components/api/report/ApiReportView.vue index 2ef10831d0..429e424d46 100644 --- a/frontend/src/business/components/api/report/ApiReportView.vue +++ b/frontend/src/business/components/api/report/ApiReportView.vue @@ -62,7 +62,7 @@ let url = "/api/report/get/" + this.reportId; this.$get(url, response => { this.report = response.data || {}; - if (this.isCompleted) { + if (this.isNotRunning) { this.content = JSON.parse(this.report.content); this.getFails(); this.loading = false; @@ -73,7 +73,7 @@ } }, getFails() { - if (this.isCompleted) { + if (this.isNotRunning) { this.fails = []; this.content.scenarios.forEach((scenario) => { let failScenario = Object.assign({}, scenario); @@ -108,8 +108,8 @@ path() { return "/api/test/edit?id=" + this.report.testId; }, - isCompleted() { - return "Completed" === this.report.status; + isNotRunning() { + return "Running" !== this.report.status; } } }