pull/237/head
zhangdaiscott 2022-11-07 14:39:14 +08:00
parent 73f1a28df3
commit 9889c1ccca
1 changed files with 2 additions and 2 deletions

View File

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