-
子组件
<com v-if="childShow" ></com >
-
先销毁再重建
fun() {
this.childShow = false;
this.$nextTick(() => {
this.childShow = true
})
},
子组件 <com v-if="childShow" ></com >
先销毁再重建
fun() {
this.childShow = false;
this.$nextTick(() => {
this.childShow = true
})
},