vue.js 跳转同一页面,传不同值,组件监听路由 watch: { '$route' () { this.type = this.$route.params.type this.loadData() } },