From 97eef05b7a38dfbe6be302c681701b24a51b3c5f Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Thu, 5 May 2022 12:38:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=A8=E4=BE=8B=E6=89=A7=E8=A1=8C=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E5=92=8C=E8=A1=A8=E6=A0=BC=E7=8A=B6=E6=80=81=E4=B8=8D?= =?UTF-8?q?=E4=B8=80=E8=87=B4=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1012833 --user=宋天阳 【接口测试】执行case,结果应该是误报,显示成了通过,需要刷新才会变成误报 https://www.tapd.cn/55049933/s/1152659 --- .../components/api/definition/components/case/ApiCaseList.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue b/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue index 7065f2a66f..de845d0eea 100644 --- a/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue +++ b/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue @@ -358,8 +358,8 @@ export default { this.singleRunId = ""; this.apiCaseList[0].active = true; if (data) { - let status = data.error > 0 ? "error" : "success"; - this.apiCaseList[0].execResult = status + let status = data.status === 'errorReportResult' ? data.status : data.error > 0 ? "error" : "success"; + this.apiCaseList[0].execResult = status; this.apiCaseList[0].responseData = data; this.$refs.apiCaseItem.runLoading = false; this.$store.state.currentApiCase = {refresh: true, id: data.id, status: status};