perf: remove loading ui

This commit is contained in:
archer
2025-04-02 17:18:18 +08:00
parent 9fe95da126
commit 2f9b83d924
5 changed files with 7 additions and 16 deletions

View File

@@ -46,5 +46,9 @@ curl --location --request POST 'https://{{host}}/api/admin/initv494' \
3. BullMQ 消息队列。
4. 站点同步支持配置训练参数。
## ⚙️ 优化
1. Admin 模板渲染调整。
## 🐛 修复

View File

@@ -84,7 +84,6 @@ const ChatHistorySlider = ({ confirmClearText }: { confirmClearText: string }) =
return (
<MyBox
isLoading={isLoading}
display={'flex'}
flexDirection={'column'}
w={'100%'}

View File

@@ -174,13 +174,7 @@ const Chat = ({ myApps }: { myApps: AppListItemType[] }) => {
)}
{(!quoteData || isPc) && (
<PageContainer
isLoading={loading}
flex={'1 0 0'}
w={0}
p={[0, '16px']}
position={'relative'}
>
<PageContainer flex={'1 0 0'} w={0} p={[0, '16px']} position={'relative'}>
<Flex h={'100%'} flexDirection={['column', 'row']}>
{/* pc always show history. */}
{RenderHistorySlider}

View File

@@ -251,7 +251,7 @@ const OutLink = (props: Props) => {
{...(isEmbed ? { p: '0 !important', borderRadius: '0', boxShadow: 'none' } : { p: [0, 5] })}
>
{(!quoteData || isPc) && (
<PageContainer flex={'1 0 0'} w={0} isLoading={loading} p={'0 !important'}>
<PageContainer flex={'1 0 0'} w={0} p={'0 !important'}>
<Flex h={'100%'} flexDirection={['column', 'row']}>
{RenderHistoryList}

View File

@@ -192,13 +192,7 @@ const Chat = ({ myApps }: { myApps: AppListItemType[] }) => {
)}
{(!quoteData || isPc) && (
<PageContainer
isLoading={loading}
flex={'1 0 0'}
w={0}
p={[0, '16px']}
position={'relative'}
>
<PageContainer flex={'1 0 0'} w={0} p={[0, '16px']} position={'relative'}>
<Flex h={'100%'} flexDirection={['column', 'row']} bg={'white'}>
{RenderHistoryList}
{/* chat container */}