vue.js 跳转同一页面,传不同值,组件监听路由

watch: {
    '$route' () {
      this.type = this.$route.params.type
      this.loadData()
    }
  },

  

posted @ 2018-12-21 17:43  漫步CODE人生  阅读(1801)  评论(0编辑  收藏  举报