这个是获取scope.row.id数据体内部的id字段如果数据体内部没有就无法获取到
<template v-slot="scope">
<el-button @click="edit(scope.row.id)" link type="primary" size="small">修改</el-button>
<el-button link type="primary" size="small">删除</el-button>
</template>
获取每行的渲染索引使用(scope.$index)
<template v-slot="scope">
<el-button @click="edit(scope.row.id)" link type="primary" size="small">修改</el-button>
<el-button link type="primary" size="small">删除</el-button>
</template>