diff --git a/src/hooks/system/useListPage.ts b/src/hooks/system/useListPage.ts index 6d09d6c..f797fce 100644 --- a/src/hooks/system/useListPage.ts +++ b/src/hooks/system/useListPage.ts @@ -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); } // 合并方法