优化wxmpConfig组件tabBar过滤逻辑

This commit is contained in:
aixianling
2024-11-27 17:59:55 +08:00
parent 3316b73450
commit 97bd799b6d

View File

@@ -22,7 +22,8 @@ export default {
},
tabBar: {
deep: true, handler(v) {
this.$set(this.form, "tabBar", v.filter(e => !!e.pagePath) || [])
this.tabBar.list = this.tabBar.list.filter(e => !!e.pagePath) || []
this.$set(this.form, "tabBar", v)
}
}
},