diff --git a/web/src/api/common.ts b/web/src/api/common.ts index 025dcb4d..18ad43be 100644 --- a/web/src/api/common.ts +++ b/web/src/api/common.ts @@ -25,7 +25,11 @@ export interface DataResponse { } export interface versionResponse{ version: string; - introduction: string; + introduction: { + releaseDate: string; + upgradePosition: string; + coreUpgrades: string[]; + }; } // 首页数据统计 export const getDashboardData = `/home-page/workspaces` diff --git a/web/src/views/Index/components/TopCardList/index.tsx b/web/src/views/Index/components/TopCardList/index.tsx index fbc434fd..273ce936 100644 --- a/web/src/views/Index/components/TopCardList/index.tsx +++ b/web/src/views/Index/components/TopCardList/index.tsx @@ -59,7 +59,6 @@ const list = [ ] const TopCardList: FC<{data?: DataResponse}> = ({ data }) => { const { t } = useTranslation() - debugger return (
+ {/* */} + {versionInfo.introduction?.releaseDate} + {/* */} +
++ {versionInfo.introduction?.upgradePosition} +
+ {versionInfo.introduction?.coreUpgrades?.map((item) => ( ++ {item} +
+ ))} + >)} + {/* {loading ? ( t('index.loading') ) : ( versionInfo?.introduction || t('index.latestUpdateDesc') - )} + )} */}