页面代码
<el-table-column label="字典类型" align="center" :show-overflow-tooltip="true">
<template slot-scope="scope">
<!-- '/dict/data/' + scope.row.dictId -->
<!-- path: {'/dict/data/', query: { id: scope.row.dictId}} -->
<router-link :to="'/dict/data/'+ scope.row.dictId" class="link-type">
<span>{{ scope.row.dictType }}</span>
</router-link>
</template>
</el-table-column>
router
{path: '/dict/data/:id', component: data},
取值
// console.log(this.$route.query.id)
console.log(this.$route.params.id)