Vue 路由之传参方式:params和query的使用和区别
首先我们来看一下params和query的两种传值方式:
this.$router.push({name:'orderDetails',params:{orderType:this.Id}});
this.$router.push({path:'/orderDetails',query:{orderType:this.Id}});
接收方式为:
this.$route.params.orderT...
原创
2020-04-10 14:55:07 ·
227 阅读 ·
0 评论