<div id="app">
<el-table :data="auList" border style="width: 100%">
<el-table-column prop="shortId" label="ID" width="180"> </el-table-column>
<el-table-column prop="nickname" label="用户名" width="180">
<template v-slot="scope">
<router-link :to="{path:'/AuthorVideosList/'+scope.row.shortId}" >{{scope.row.nickname}}</router-link>
</template>
</el-table-column>
</el-table>
</div>
路由和ui基本操作。
如何在column获取到当前object?
<template v-slot="scope">
<router-link :to="{path:'/AuthorVideosList/'+scope.row.shortId}" >{{scope.row.nickname}}</router-link>
</template>
在scope.row中可以获取到数组中的当前对象