chore: bug fix for home page

This commit is contained in:
JustSong
2025-02-01 01:08:28 +08:00
parent 5997fce454
commit 0a6273fc08

View File

@@ -56,6 +56,8 @@ const Home = () => {
}, []);
return (
<>
{homePageContentLoaded && homePageContent === '' ? (
<div className='dashboard-container'>
<Card fluid className='chart-card'>
<Card.Content>
@@ -63,7 +65,8 @@ const Home = () => {
<Card.Description style={{ lineHeight: '1.6' }}>
<p>
One API 是一个 LLM API
接口管理和分发系统可以帮助您更好地管理和使用各大厂商的 LLM API
接口管理和分发系统可以帮助您更好地管理和使用各大厂商的 LLM
API
</p>
{!userState.user && (
<p>
@@ -74,8 +77,6 @@ const Home = () => {
</Card.Description>
</Card.Content>
</Card>
{homePageContentLoaded && homePageContent === '' ? (
<Card fluid className='chart-card'>
<Card.Content>
<Card.Header>
@@ -117,7 +118,9 @@ const Home = () => {
>
<i className='code branch icon'></i>
<span style={{ fontWeight: 'bold' }}>版本</span>
<span>{statusState?.status?.version || 'unknown'}</span>
<span>
{statusState?.status?.version || 'unknown'}
</span>
</p>
<p
style={{
@@ -267,7 +270,8 @@ const Home = () => {
</Grid.Column>
</Grid>
</Card.Content>
</Card>
</Card>{' '}
</div>
) : (
<>
{homePageContent.startsWith('https://') ? (
@@ -283,7 +287,7 @@ const Home = () => {
)}
</>
)}
</div>
</>
);
};