From c3a0fb6eb99554970f06d575a10f45fb370fe177 Mon Sep 17 00:00:00 2001 From: AnAngle <1323481023@qq.com> Date: Sat, 16 Apr 2022 16:01:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20UI=E6=8A=A5=E5=91=8A=E5=A4=B1=E8=B4=A5ta?= =?UTF-8?q?b=E4=B8=8D=E6=98=BE=E7=A4=BA=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/automation/report/components/ScenarioResults.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/business/components/api/automation/report/components/ScenarioResults.vue b/frontend/src/business/components/api/automation/report/components/ScenarioResults.vue index bbebfe17f0..0561eb388f 100644 --- a/frontend/src/business/components/api/automation/report/components/ScenarioResults.vue +++ b/frontend/src/business/components/api/automation/report/components/ScenarioResults.vue @@ -51,7 +51,7 @@ export default { }, computed: { isUi() { - return this.report.reportType && this.report.reportType.startsWith("UI"); + return this.report && this.report.reportType && this.report.reportType.startsWith("UI"); }, }, methods: { @@ -70,8 +70,10 @@ export default { return true; } }else { - if (!data.errorCode || data.errorCode === "") { - return data.value.error > 0 || (this.isUi && !data.value.success && data.value.body); + if (this.isUi) { + return data.value.success === false; + } else if (!data.errorCode || data.errorCode === "") { + return data.value.error > 0; } } }