优化webConfig和wxmpConfig组件的表单处理逻辑
This commit is contained in:
		| @@ -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}` | ||||
|     }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user