diff --git a/project/oms/apps/develop/AppDeployCustom/add.vue b/project/oms/apps/develop/AppDeployCustom/add.vue
index 7ae5350f..b184d60d 100644
--- a/project/oms/apps/develop/AppDeployCustom/add.vue
+++ b/project/oms/apps/develop/AppDeployCustom/add.vue
@@ -60,6 +60,9 @@
+
+
+
@@ -158,11 +161,11 @@ export default {
submit() {
this.$refs.AddForm.validate(v => {
if (v) {
- const {tabBar, form: {type, appId, isSingleService}} = this
+ const {tabBar, form: {type, appId, isSingleService, homePage}} = this
if (type == 'mp') {
this.form.extra = {tabBar, appId}
} else if (v == 'wxwork') {
- this.form.extra = {isSingleService}
+ this.form.extra = {isSingleService, homePage}
}
this.instance.post("/node/custom/addOrUpdate", this.form).then(res => {
if (res?.code == 0) {
@@ -173,13 +176,15 @@ export default {
}
})
},
- handleSysTypeChange(v, data) {
+ handleSysTypeChange(v, data = {}) {
+ let values = this.$copy(data)
if (v == 'mp') {
- this.form.appId = data.appId
- this.tabBar = data?.tabBar || this.tabBar
- } else if (v == 'wxwork') {
- this.form.isSingleService = data.isSingleService
+ if (values?.tabBar) {
+ this.tabBar = values.tabBar || this.tabBar
+ delete values.tabBar
+ }
}
+ Object.keys(values).map(e => this.$set(this.form, e, values[e]))
},
handleTabbarChange(row, {name, label}) {
row.text = label