watch 监听路由变化,且dom渲染完成后执行函数

watch:{
    // "$route": "monitorAPP"
    $route: {
      handler:function(val, oldVal){
        this.$nextTick(function(){  //页面加载完成后执行
          this.monitorAPP()
        })
      },
      // 深度观察监听
      deep: true
    }
  }

 

相关文章:

  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-17
相关资源
相似解决方案