Skip to content

Commit 724ea86

Browse files
committed
fix: type
1 parent 3749e08 commit 724ea86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/routes/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { useMemo } from 'react';
2121
import { useTranslation } from 'react-i18next';
2222

2323
import { getRouteListQueryOptions, useRouteList } from '@/apis/hooks';
24-
import type { GetRouteListReqParams } from '@/apis/routes';
24+
import type { WithServiceIdFilter } from '@/apis/routes';
2525
import { DeleteResourceBtn } from '@/components/page/DeleteResourceBtn';
2626
import PageHeader from '@/components/page/PageHeader';
2727
import { ToAddPageBtn, ToDetailPageBtn } from '@/components/page/ToAddPageBtn';
@@ -34,7 +34,7 @@ import type { ListPageKeys } from '@/utils/useTablePagination';
3434

3535
export type RouteListProps = {
3636
routeKey: Extract<ListPageKeys, '/routes/' | '/services/detail/$id/routes/'>;
37-
defaultParams?: Partial<GetRouteListReqParams>;
37+
defaultParams?: Partial<WithServiceIdFilter>;
3838
ToDetailBtn: (props: {
3939
record: APISIXType['RespRouteItem'];
4040
}) => React.ReactNode;

0 commit comments

Comments
 (0)