fix(接口测试): 修复复制环境,环境被生成两条的缺陷
--bug=1030235 --user=王孝刚 【接口测试】github#26670,系统复制环境并保存,环境会被生成两条 https://www.tapd.cn/55049933/s/1414605
This commit is contained in:
parent
3270bb2fe3
commit
a2e060bfcd
|
@ -166,6 +166,7 @@ export default {
|
||||||
this.$refs.environmentEdit._save(newEnvironment);
|
this.$refs.environmentEdit._save(newEnvironment);
|
||||||
this.environments.unshift(newEnvironment);
|
this.environments.unshift(newEnvironment);
|
||||||
this.$refs.environmentItems.itemSelected(this.environments.length - 1, newEnvironment);
|
this.$refs.environmentItems.itemSelected(this.environments.length - 1, newEnvironment);
|
||||||
|
this.refresh();
|
||||||
},
|
},
|
||||||
validateEnvironment(environment) {
|
validateEnvironment(environment) {
|
||||||
if (!this.$refs.environmentEdit.validate()) {
|
if (!this.$refs.environmentEdit.validate()) {
|
||||||
|
|
Loading…
Reference in New Issue