diff --git a/src/pages/Article/index.tsx b/src/pages/Article/index.tsx index 2289afd..9099b91 100644 --- a/src/pages/Article/index.tsx +++ b/src/pages/Article/index.tsx @@ -129,7 +129,7 @@ const ArticlePage = () => { startDate: values.createTime ? +values.createTime[0].valueOf() : null, endDate: values.createTime ? +values.createTime[1].valueOf() : null, cateIds: values.cateIds ? values?.cateIds?.join(",") : null, - tagIds: values.tagIds ? values.tagIds + "" : null, + tagId: values.tagId ? values.tagId + "" : null, } const { data } = await getArticleListAPI({ query }); diff --git a/src/pages/Article/type.d.ts b/src/pages/Article/type.d.ts index a16f89c..b44fc89 100644 --- a/src/pages/Article/type.d.ts +++ b/src/pages/Article/type.d.ts @@ -1,11 +1,11 @@ export interface FilterForm { title: string, cateIds?: number[], - tagIds?: number, + tagId?: number, createTime: Date[] } export interface FilterArticle extends FilterData { cateIds?: string | null, - tagIds?: string | null, + tagId?: string | null, } \ No newline at end of file