fix(接口定义): 修复场景变量校验重名的缺陷
--bug=1016084 --user=王孝刚 【接口测试】场景,场景变量,正常修改变量也提示名称不能重复了 https://www.tapd.cn/55049933/s/1229708
This commit is contained in:
parent
2bb1a173b5
commit
cf6ca0a8cc
|
@ -473,7 +473,7 @@ export default {
|
||||||
}
|
}
|
||||||
let repeatKey = "";
|
let repeatKey = "";
|
||||||
this.variables.forEach((item) => {
|
this.variables.forEach((item) => {
|
||||||
if (item.name === this.editData.name) {
|
if (item.name === this.editData.name && item.id !== this.editData.id) {
|
||||||
repeatKey = item.name;
|
repeatKey = item.name;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -181,7 +181,6 @@
|
||||||
prop="caseStatus"
|
prop="caseStatus"
|
||||||
:fields-width="fieldsWidth"
|
:fields-width="fieldsWidth"
|
||||||
min-width="100px"
|
min-width="100px"
|
||||||
:filters="caseStatusFilters"
|
|
||||||
:label="$t('api_test.definition.api_case_status')"/>
|
:label="$t('api_test.definition.api_case_status')"/>
|
||||||
|
|
||||||
<ms-table-column
|
<ms-table-column
|
||||||
|
|
Loading…
Reference in New Issue