vue.js 跳转同一页面,传不同值,组件监听路由
watch: { '$route' () { this.type = this.$route.params.type this.loadData() } },
编程PDF电子书免费下载: http://www.shitanlife.com/code 每天学习一点点
watch: { '$route' () { this.type = this.$route.params.type this.loadData() } },