优化webConfig和wxmpConfig组件的表单处理逻辑

This commit is contained in:
aixianling
2024-11-28 09:24:32 +08:00
parent 97bd799b6d
commit afe1df98f3
3 changed files with 4 additions and 20 deletions

View File

@@ -22,8 +22,7 @@ export default {
},
tabBar: {
deep: true, handler(v) {
this.tabBar.list = this.tabBar.list.filter(e => !!e.pagePath) || []
this.$set(this.form, "tabBar", v)
this.$emit("input", {...this.form, tabBar: {...v, list: v.list.filter(e => !!e.pagePath) || []}})
}
}
},
@@ -52,8 +51,7 @@ export default {
}
},
methods: {
handleTabbarChange(row, {id, name, label}) {
row.id = id
handleTabbarChange(row, {name, label}) {
row.text = label
row.pagePath = `pages/${name}/${name}`
},