vue中router-link路由携带参数跳转
在对应的路由模块儿中
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)

浙公网安备 33010602011771号