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

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

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,