From cf6ca0a8cc0baafa4de7fd8258022b1793afe1d1 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Mon, 22 Aug 2022 16:02:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=BA=E6=99=AF=E5=8F=98=E9=87=8F=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E9=87=8D=E5=90=8D=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1016084 --user=王孝刚 【接口测试】场景,场景变量,正常修改变量也提示名称不能重复了 https://www.tapd.cn/55049933/s/1229708 --- .../api/automation/scenario/variable/VariableList.vue | 2 +- .../components/api/definition/components/list/ApiList.vue | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue b/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue index cef6cefeb8..22b0634fc8 100644 --- a/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue +++ b/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue @@ -473,7 +473,7 @@ export default { } let repeatKey = ""; this.variables.forEach((item) => { - if (item.name === this.editData.name) { + if (item.name === this.editData.name && item.id !== this.editData.id) { repeatKey = item.name; } }); diff --git a/frontend/src/business/components/api/definition/components/list/ApiList.vue b/frontend/src/business/components/api/definition/components/list/ApiList.vue index b83fed10f6..96c1652271 100644 --- a/frontend/src/business/components/api/definition/components/list/ApiList.vue +++ b/frontend/src/business/components/api/definition/components/list/ApiList.vue @@ -181,7 +181,6 @@ prop="caseStatus" :fields-width="fieldsWidth" min-width="100px" - :filters="caseStatusFilters" :label="$t('api_test.definition.api_case_status')"/>