From c6b516d6b5ce4019aada9b3ec5d45f16f0a640c7 Mon Sep 17 00:00:00 2001 From: lvchenpeng <3194951363@qq.com> Date: Fri, 28 Feb 2025 18:08:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../discover/(list)/_layout/Desktop/index.tsx | 2 +- .../discover/(list)/models/_layout/Desktop.tsx | 16 +++++++++------- .../discover/(list)/models/features/List.tsx | 6 +++--- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/DigitalHumanWeb/src/app/(main)/discover/(list)/_layout/Desktop/index.tsx b/DigitalHumanWeb/src/app/(main)/discover/(list)/_layout/Desktop/index.tsx index 162174c..0085062 100644 --- a/DigitalHumanWeb/src/app/(main)/discover/(list)/_layout/Desktop/index.tsx +++ b/DigitalHumanWeb/src/app/(main)/discover/(list)/_layout/Desktop/index.tsx @@ -20,7 +20,7 @@ const Layout = ({ children }: PropsWithChildren) => { > {children} diff --git a/DigitalHumanWeb/src/app/(main)/discover/(list)/models/_layout/Desktop.tsx b/DigitalHumanWeb/src/app/(main)/discover/(list)/models/_layout/Desktop.tsx index aa4c3d6..a773e9a 100644 --- a/DigitalHumanWeb/src/app/(main)/discover/(list)/models/_layout/Desktop.tsx +++ b/DigitalHumanWeb/src/app/(main)/discover/(list)/models/_layout/Desktop.tsx @@ -12,14 +12,16 @@ const Layout = async ({ children }: PropsWithChildren) => { const categoryList = await discoverService.getProviderList(DEFAULT_LANG); return ( - - - - - - {children} +
+ + + + + + {children} + - +
); }; diff --git a/DigitalHumanWeb/src/app/(main)/discover/(list)/models/features/List.tsx b/DigitalHumanWeb/src/app/(main)/discover/(list)/models/features/List.tsx index 84555ed..767a589 100644 --- a/DigitalHumanWeb/src/app/(main)/discover/(list)/models/features/List.tsx +++ b/DigitalHumanWeb/src/app/(main)/discover/(list)/models/features/List.tsx @@ -74,7 +74,7 @@ const List = memo(async ({ category, searchKeywords, items = [] }) => }; fetchData(); }, []); // 空数组[]意味着仅在组件挂载时调用一次 - + const handleClickCard = (item) => { console.log(item) router.push(urlJoin('/discover/model/', item.identifier)) @@ -108,7 +108,7 @@ const List = memo(async ({ category, searchKeywords, items = [] }) => {stData.map((item) => ( // - handleClickCard(item)} showCategory={!category} {...item} /> + handleClickCard(item)} showCategory={!category} {...item} /> // ))} @@ -121,7 +121,7 @@ const List = memo(async ({ category, searchKeywords, items = [] }) => initialItemCount={24} itemContent={(_, item) => ( // - handleClickCard(item)} showCategory={!category} {...item} /> + handleClickCard(item)} showCategory={!category} {...item} /> // )} style={{