在a页面出发跳转到a页面,url上携带新参数,希望mounted出发,获取数据,渲染到页面。
this.$router.replace({
path: '/case-detail',
query: {
caseId: this.detailInfo.parentId
}
})
this.search() //mounted中的方法,手动触发
或者
this.$router.replace("url")
this.search() //mounted中的方法,手动触发