优化代码

pull/47/head
smallbun 1 year ago
parent 337f3ecbc7
commit 62fa1b3edc

@ -18,7 +18,6 @@
import { getEncryptSecret } from '@/services';
import type { SortOrder } from 'antd/es/table/interface';
import { parse } from 'querystring';
import type { ReactText } from 'react';
import { history, matchPath } from '@umijs/max';
import { PhoneNumber } from 'google-libphonenumber';
@ -94,7 +93,7 @@ export const sortParamConverter = (value: Record<string, SortOrder> | undefined)
*
* @param value
*/
export const filterParamConverter = (value: Record<string, Record<string, string | number[] | null>[] | null> | undefined) => {
export const filterParamConverter = (value: Record<string, (string | number)[] | null>) => {
const param: Record<string, any> = {};
if (value)
Object.entries(value).forEach(([key], index) => {

Loading…
Cancel
Save