router-link传递参数并获取

跳转链接:

<router-link :to="{path:'libraryDetail/', query:{library_id:data.library_id}}">

获取参数:

library_id = this.$route.query.library_id;

 

posted @ 2019-01-24 14:49  随★风  阅读(9613)  评论(0编辑  收藏  举报