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 (
{list.map((item) => { diff --git a/web/src/views/Index/components/VersionCard.tsx b/web/src/views/Index/components/VersionCard.tsx index 9b7af54a..234a8f3e 100644 --- a/web/src/views/Index/components/VersionCard.tsx +++ b/web/src/views/Index/components/VersionCard.tsx @@ -1,7 +1,15 @@ +/* + * @Description: + * @Version: 0.0.1 + * @Author: yujiangping + * @Date: 2026-01-12 16:34:59 + * @LastEditors: yujiangping + * @LastEditTime: 2026-01-13 17:23:31 + */ import React, { useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; -import { Button } from 'antd'; -import arrowRight from '@/assets/images/index/arrow_right.svg' +// import { Button } from 'antd'; +// import arrowRight from '@/assets/images/index/arrow_right.svg' import { getVersion, type versionResponse } from '@/api/common' const GuideCard: React.FC = () => { @@ -27,20 +35,36 @@ const GuideCard: React.FC = () => { return (
-
+
{ t('index.latestUpdate')} - {versionInfo && ( - + {versionInfo && (<> + {versionInfo.version} - )} + + )}
-
- {loading ? ( +
+ {versionInfo && (<> +

+ {/* */} + {versionInfo.introduction?.releaseDate} + {/* */} +

+

+ {versionInfo.introduction?.upgradePosition} +

+ {versionInfo.introduction?.coreUpgrades?.map((item) => ( +

+ {item} +

+ ))} + )} + {/* {loading ? ( t('index.loading') ) : ( versionInfo?.introduction || t('index.latestUpdateDesc') - )} + )} */}
{/*