vue控制dom显示出现后执行的操作

if (this.active === 1){
  this.monthDisplay = false
  this.dayDisplay = true
  this.timeDisplay = false
  this.chartDisplay = false
  this.$nextTick(()=>{
    this.initMonthChart();
  })
}
posted @ 2024-04-30 12:56  蜗牛使劲冲  阅读(14)  评论(0编辑  收藏  举报