diff --git a/project/oms/apps/develop/AppDeployCustom/add.vue b/project/oms/apps/develop/AppDeployCustom/add.vue index 88e350ab..b87e930e 100644 --- a/project/oms/apps/develop/AppDeployCustom/add.vue +++ b/project/oms/apps/develop/AppDeployCustom/add.vue @@ -101,7 +101,7 @@ export default { }, data() { return { - form: {apps: [], type: null, sysInfo: {}, customPath: ""}, + form: {apps: [], type: null, sysInfo: {}, customPath: "", extra: {}}, rules: { name: {required: true, message: "请输入"}, type: {required: true, message: "请选择"}, @@ -137,7 +137,7 @@ export default { params: {id} }).then(res => { if (res?.data) { - this.form = {extra: {}, ...this.form, ...res.data} + this.form = {...this.form, ...res.data} } }) },