优化wxmpConfig组件表单处理及tabBar初始化逻辑
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user