//需要watch监听$route to为新传入的id 更改当前orderId再执行方法即可刷新页面
watch:{
$route(to,from){
this.orderId = to.query.orderId;
return this.getData();
}
}
//需要watch监听$route to为新传入的id 更改当前orderId再执行方法即可刷新页面
watch:{
$route(to,from){
this.orderId = to.query.orderId;
return this.getData();
}
}