From e19e275fe3e397c901e585a2de138c038439180e Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 30 Mar 2022 21:23:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20ui=E6=8A=A5=E5=91=8A=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/automation/report/components/ScenarioResults.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 d7ee78bf40..4a60b45d5b 100644 --- a/frontend/src/business/components/api/automation/report/components/ScenarioResults.vue +++ b/frontend/src/business/components/api/automation/report/components/ScenarioResults.vue @@ -48,6 +48,11 @@ export default { this.$refs.resultsTree.root.expanded = true; } }, + computed: { + isUi() { + return this.$route && this.$route.meta && this.$route.meta.isUi; + }, + }, methods: { filterNode(value, data) { if (!data.value && !data.children && data.children.length === 0) { @@ -65,7 +70,7 @@ export default { } }else { if (!data.errorCode || data.errorCode === "") { - return data.value.error > 0; + return data.value.error > 0 || (this.isUi && !data.value.success && data.value.body); } } }