表格默认按照id降序排列

pull/237/head
zhangdaiscott 2022-11-07 13:35:56 +08:00
parent 602aac5bf0
commit 73f1a28df3
1 changed files with 2 additions and 2 deletions

View File

@ -272,8 +272,8 @@ export function useListTable(tableProps: TableProps): [
// 发送请求之前调用的方法
function beforeFetch(params) {
// 默认以 createTime 降序排序
return Object.assign({ column: 'createTime', order: 'desc' }, params);
// 默认以 id 降序排序
return Object.assign({ column: 'id', order: 'desc' }, params);
}
// 合并方法