表格默认按照id降序排列
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
// 合并方法
|
||||
|
Reference in New Issue
Block a user