解决方法:
子组件接受父组件传值,使用watch监听加载
props: {
mapPop: {
type: Boolean,
},
},
watch: {
mapPop() {
this.$nextTick(() => {
this.init();
this.carinode();
});
},
},
解决方法:
子组件接受父组件传值,使用watch监听加载
props: {
mapPop: {
type: Boolean,
},
},
watch: {
mapPop() {
this.$nextTick(() => {
this.init();
this.carinode();
});
},
},