fix(接口测试): 修复复制环境,环境被生成两条的缺陷

--bug=1030235 --user=王孝刚 【接口测试】github#26670,系统复制环境并保存,环境会被生成两条
https://www.tapd.cn/55049933/s/1414605
This commit is contained in:
wxg0103 2023-09-11 16:53:51 +08:00 committed by 刘瑞斌
parent 3270bb2fe3
commit a2e060bfcd
1 changed files with 1 additions and 0 deletions

View File

@ -166,6 +166,7 @@ export default {
this.$refs.environmentEdit._save(newEnvironment);
this.environments.unshift(newEnvironment);
this.$refs.environmentItems.itemSelected(this.environments.length - 1, newEnvironment);
this.refresh();
},
validateEnvironment(environment) {
if (!this.$refs.environmentEdit.validate()) {