From 9889c1ccca949b3b77e0568e95bd1e9dceaff80a Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Mon, 7 Nov 2022 14:39:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E5=8E=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/system/useListPage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/system/useListPage.ts b/src/hooks/system/useListPage.ts index f797fce..6d09d6c 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) { - // 默认以 id 降序排序 - return Object.assign({ column: 'id', order: 'desc' }, params); + // 默认以 createTime 降序排序 + return Object.assign({ column: 'createTime', order: 'desc' }, params); } // 合并方法