fix(接口定义): 修复场景变量校验重名的缺陷

--bug=1016084 --user=王孝刚 【接口测试】场景,场景变量,正常修改变量也提示名称不能重复了
https://www.tapd.cn/55049933/s/1229708
This commit is contained in:
wxg0103 2022-08-22 16:02:40 +08:00 committed by f2c-ci-robot[bot]
parent 8ca3b2e57c
commit 980abd1e23
2 changed files with 1 additions and 2 deletions

View File

@ -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;
}
});

View File

@ -181,7 +181,6 @@
prop="caseStatus"
:fields-width="fieldsWidth"
min-width="100px"
:filters="caseStatusFilters"
:label="$t('api_test.definition.api_case_status')"/>
<ms-table-column