vue组件中的数据传递 1.设置要传的参数 1. <router-link :to="{path:'/xx',query:{xxx:'xxx'}}"></router-link> 2. //1. this.$router.push('/xxx' + xxx) //2. this.$router.push( { path:'/xxx', query:{xxx:xxx,...} } ) 2.获取参数 $route.query.xxx