$route监听路由变化

export default {
  watch:{
    $route(){
      alert(1)
    }
  }
}
posted @ 2017-04-02 08:33  judy201654321  阅读(973)  评论(0编辑  收藏  举报