From 213a7db8fd6d4889022c0bab3fc98f579c74f298 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Tue, 29 Dec 2020 15:18:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E7=BC=BA=E9=99=B7=E5=A4=B1=E8=B4=A5=E6=97=B6?= =?UTF-8?q?=E6=8D=95=E8=8E=B7=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../view/comonents/functional/FunctionalTestCaseList.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/track/plan/view/comonents/functional/FunctionalTestCaseList.vue b/frontend/src/business/components/track/plan/view/comonents/functional/FunctionalTestCaseList.vue index 5a85256d02..7f4ed90945 100644 --- a/frontend/src/business/components/track/plan/view/comonents/functional/FunctionalTestCaseList.vue +++ b/frontend/src/business/components/track/plan/view/comonents/functional/FunctionalTestCaseList.vue @@ -364,12 +364,14 @@ export default { for (let i = 0; i < this.tableData.length; i++) { if (this.tableData[i]) { this.$set(this.tableData[i], "issuesSize", 0); - this.$get("/issues/get/" + this.tableData[i].caseId, response => { - let issues = response.data; + this.$get("/issues/get/" + this.tableData[i].caseId).then(response => { + let issues = response.data.data; if (this.tableData[i]) { this.$set(this.tableData[i], "issuesSize", issues.length); this.$set(this.tableData[i], "issuesContent", issues); } + }).catch(() => { + this.$set(this.tableData[i], "issuesContent", [{title: '获取缺陷失败',description: '获取缺陷失败',platform: '获取缺陷失败' }]); }) } }