想要写一个强制刷新,
首先,在data里面定义show:"true"
其次页面上 v-if=show
再然后方法里面:
this.show=false
this.$nextTick(()=>{
this.show=true
})
想要写一个强制刷新,
首先,在data里面定义show:"true"
其次页面上 v-if=show
再然后方法里面:
this.show=false
this.$nextTick(()=>{
this.show=true
})