前提:element-ui、table、多选、分页
条件:在el-table-column中使用:reserve-selection="true"来保留首页或其他选中数据时的选中状态
报错:
解决:在el-table上添加:row-key="getRowKey"
注:此处将row-key值定为id
methods: { getRowKey(row){ return row.id; }, }