方式一:
路由路徑:/detail/:參數(shù)名
this.$router.push({path: '/detail/'+參數(shù)值});
接收:$route.params.參數(shù)名
方式二:
路由路徑:/detail
this.$router.push({path: '/detail/'俐东,query:{參數(shù)名:參數(shù)值});
接收:$router.currentRoute.query.參數(shù)名
方式三:
<a v-link="{ name:路由名, params: { 參數(shù)名: 參數(shù)值 }}"></a>
接受:this.$route.params.參數(shù)名