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