优化wxmpConfig组件表单处理及tabBar初始化逻辑

This commit is contained in:
aixianling
2024-11-28 10:23:15 +08:00
parent afe1df98f3
commit 6d7769e61a

View File

@@ -15,8 +15,8 @@ export default {
},
watch: {
form: {
handler() {
this.$emit("input", this.form)
handler(v) {
this.$emit("input", v)
},
deep: true
},
@@ -63,6 +63,9 @@ export default {
this.tabBar.list.splice(i, 1, this.tabBar.list[i + offset])
this.tabBar.list.splice(i + offset, 1, row)
}
},
created() {
this.tabBar = this.form.tabBar
}
}
</script>