fix(接口测试): 修复环境通用设置的校验问题

--bug=1026573 --user=王孝刚 【接口测试】github#24640,环境配置,勾选了通用配置列表,切换环境,通用配置不切换
https://www.tapd.cn/55049933/s/1386592
This commit is contained in:
wxg0103 2023-06-26 19:39:48 +08:00 committed by 刘瑞斌
parent 7add354791
commit 0a4227fb24
2 changed files with 2 additions and 1 deletions

View File

@ -191,6 +191,7 @@ export default {
this.$refs.environmentItems.itemSelected(this.environments.length - 1, newEnvironment);
},
environmentSelected(environment) {
this.$refs.environmentEdit.clearValidate();
this.getEnvironment(environment);
},
getEnvironments() {

View File

@ -270,8 +270,8 @@ export default {
this.variables = this.allData.slice(0, this.pageSize);
this.variables.forEach((item) => {
item.showMore = false;
delete item.hashTree;
});
return;
}
let start = (this.currentPage - 1) * this.pageSize;
let end = this.currentPage * this.pageSize;