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