fix(接口定义): 复制环境修改环境后保存失败

This commit is contained in:
wxg0103 2022-08-23 14:41:12 +08:00 committed by f2c-ci-robot[bot]
parent 71c2947f6b
commit 70b789024f
1 changed files with 5 additions and 2 deletions

View File

@ -11,7 +11,7 @@
<environment-edit :if-create="ifCreate" :environment="currentEnvironment" <environment-edit :if-create="ifCreate" :environment="currentEnvironment"
ref="environmentEdit" :is-read-only="isReadOnly" ref="environmentEdit" :is-read-only="isReadOnly"
@confirm="save" :is-project="true" @confirm="save" :is-project="true"
@close="close"/> @close="close" @refreshAfterSave="refresh"/>
</el-container> </el-container>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
@ -226,7 +226,10 @@ export default {
}, },
delEnvironment() { delEnvironment() {
this.deleteEnvironment(this.currentEnvironment, this.currentIndex) this.deleteEnvironment(this.currentEnvironment, this.currentIndex)
} },
refresh() {
this.getEnvironments();
},
} }
} }
</script> </script>