$route监听路由变化

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