+
+
{ t('index.latestUpdate')}
+ {versionInfo && (
+
+ {versionInfo.version}
+
+ )}
- { t('index.latestUpdateDesc')}
+ {loading ? (
+ t('index.loading')
+ ) : (
+ versionInfo?.introduction || t('index.latestUpdateDesc')
+ )}
-
+ {/*
-
+
*/}
);
};
diff --git a/web/src/views/Index/index.tsx b/web/src/views/Index/index.tsx
index e6265d3b..3cab0276 100644
--- a/web/src/views/Index/index.tsx
+++ b/web/src/views/Index/index.tsx
@@ -1,7 +1,7 @@
import { useEffect, useState, useRef } from 'react';
import { useTranslation } from 'react-i18next';
import { useNavigate } from 'react-router-dom';
-import { Row, Col, Space, Button } from 'antd';
+import { Space, Button } from 'antd';
import TopCardList from './components/TopCardList';
import GuideCard from './components/GuideCard';
import VersionCard from './components/VersionCard';
@@ -100,8 +100,8 @@ const Index = () => {
return (
-
-
+
+
{ t('index.spaceTitle' )}
@@ -121,8 +121,8 @@ const Index = () => {
/>
-
-
+
+
{/* 引导 */}
@@ -130,10 +130,10 @@ const Index = () => {
{/* 快捷操作 */}
-
+
-
-
+
+