在对应的路由模块儿中
path: 'courseList/:id?'
router-link中书写方法如下
<template slot-scope="scope">
<router-link :to="{ path: '/course/courseList/' + scope.row.id }">跳转按钮
</router-link>
</el-table-column>
跳转页面获得传递的参数
console.log(this.$route.params)
标签:vue,参数,跳转,link,router,路由
From: https://www.cnblogs.com/orangeczs/p/17519315.html