From 20be2d711556258cf0627414ec2818c16892543a Mon Sep 17 00:00:00 2001 From: chenos Date: Mon, 29 Mar 2021 10:19:42 +0800 Subject: [PATCH] fix: change logs order by desc --- packages/plugin-action-logs/src/collections/action_logs.ts | 2 +- packages/plugin-permissions/src/collections/roles.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugin-action-logs/src/collections/action_logs.ts b/packages/plugin-action-logs/src/collections/action_logs.ts index 7db60fbc7..a22b29489 100644 --- a/packages/plugin-action-logs/src/collections/action_logs.ts +++ b/packages/plugin-action-logs/src/collections/action_logs.ts @@ -206,7 +206,7 @@ export default { fields: ['created_at', 'user', 'type', 'index'], detailsOpenMode: 'drawer', // window details: ['descriptions'], - sort: ['created_at'], + sort: ['-created_at'], }, { developerMode: true, diff --git a/packages/plugin-permissions/src/collections/roles.ts b/packages/plugin-permissions/src/collections/roles.ts index 274a203a7..a88df62ba 100644 --- a/packages/plugin-permissions/src/collections/roles.ts +++ b/packages/plugin-permissions/src/collections/roles.ts @@ -38,7 +38,7 @@ export default { }, { interface: 'boolean', - title: '默认角色', + title: '默认权限组', type: 'radio', name: 'default', component: {