fix: 🐛 ts类型警告问题修复

This commit is contained in:
ray committed 2024-08-11 13:30:03 +08:00
1 parent 5b17b28d9d
commit 24c1fb26a0
2 files changed
+11 -11

No files matched your search

-8
View File
@@ -16,14 +16,6 @@ const contentConfig: IContentConfig<UserPageQuery> = {
pageSizes: [10, 20, 30, 50],
},
indexAction: function (params) {
if ("createAt" in params) {
const createAt = params.createAt as string[];
if (createAt?.length > 1) {
params.startTime = createAt[0];
params.endTime = createAt[1];
}
delete params.createAt;
}
return UserAPI.getPage(params);
},
deleteAction: UserAPI.deleteByIds,