From 0dccf22ecac61236adb9eaeecd9fa5e0fe361104 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 22 Feb 2023 11:51:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E5=BA=93=E7=94=A8=E4=BE=8B=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1023636 --user=陈建星 【测试跟踪】公共用例库-当前用户对无项目权限的用例进行操作-问题汇总 https://www.tapd.cn/55049933/s/1340426 --- .../case/components/BaseEditItemComponent.vue | 3 ++ .../business/case/components/TestCaseEdit.vue | 42 +++++++++++++------ .../business/case/components/TestCaseList.vue | 6 +-- .../components/public/PublicTestCaseList.vue | 4 +- .../frontend/src/business/case/test-case.js | 6 ++- 5 files changed, 42 insertions(+), 19 deletions(-) diff --git a/test-track/frontend/src/business/case/components/BaseEditItemComponent.vue b/test-track/frontend/src/business/case/components/BaseEditItemComponent.vue index 89efdde175..a273222ce4 100644 --- a/test-track/frontend/src/business/case/components/BaseEditItemComponent.vue +++ b/test-track/frontend/src/business/case/components/BaseEditItemComponent.vue @@ -205,6 +205,9 @@ export default { }); }, getTranslateOption(item) { + if (!item) { + return ''; + } if (Array.isArray(item)) { let arr = []; item.forEach((v) => { diff --git a/test-track/frontend/src/business/case/components/TestCaseEdit.vue b/test-track/frontend/src/business/case/components/TestCaseEdit.vue index 13f9793d1c..08f01d3d89 100644 --- a/test-track/frontend/src/business/case/components/TestCaseEdit.vue +++ b/test-track/frontend/src/business/case/components/TestCaseEdit.vue @@ -79,7 +79,7 @@
@@ -89,7 +89,7 @@