diff --git a/project/oms/apps/develop/AppDeployCustom/config/wxmpConfig.vue b/project/oms/apps/develop/AppDeployCustom/config/wxmpConfig.vue index 7fc0b298..73c7d84c 100644 --- a/project/oms/apps/develop/AppDeployCustom/config/wxmpConfig.vue +++ b/project/oms/apps/develop/AppDeployCustom/config/wxmpConfig.vue @@ -19,6 +19,11 @@ export default { this.$emit("input", this.form) }, deep: true + }, + tabBar: { + deep: true, handler(v) { + this.$set(this.form, "tabBar", v.filter(e => !!e.pagePath) || []) + } } }, data() { @@ -46,7 +51,8 @@ export default { } }, methods: { - handleTabbarChange(row, {name, label}) { + handleTabbarChange(row, {id, name, label}) { + row.id = id row.text = label row.pagePath = `pages/${name}/${name}` },