diff --git a/orion-ops-vue/src/components/app/AppBuildConfigForm.vue b/orion-ops-vue/src/components/app/AppBuildConfigForm.vue index d2999fb1..315956b9 100644 --- a/orion-ops-vue/src/components/app/AppBuildConfigForm.vue +++ b/orion-ops-vue/src/components/app/AppBuildConfigForm.vue @@ -55,12 +55,12 @@ @@ -94,6 +94,14 @@ export default { this.actions.map(s => s.type).filter(t => t === this.$enum.BUILD_ACTION_TYPE.CHECKOUT.value).length < 1 } }, + watch: { + detail(e) { + this.initData(e) + }, + dataLoading(e) { + this.loading = e + } + }, data() { return { loading: false, @@ -104,14 +112,6 @@ export default { editorConfig } }, - watch: { - detail(e) { - this.initData(e) - }, - dataLoading(e) { - this.loading = e - } - }, methods: { initData(detail) { this.profileId = detail.profileId @@ -189,6 +189,7 @@ export default { buildActions: this.actions }).then(() => { this.$message.success('保存成功') + this.$emit('updated') this.loading = false }).catch(() => { this.loading = false @@ -204,7 +205,7 @@ export default {