fix(接口定义): 修复场景变量校验重名的缺陷
--bug=1016084 --user=王孝刚 【接口测试】场景,场景变量,正常修改变量也提示名称不能重复了 https://www.tapd.cn/55049933/s/1229708
This commit is contained in:
parent
8ca3b2e57c
commit
980abd1e23
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue