|
|
|
@ -317,9 +317,16 @@ const Conversations = () => {
|
|
|
|
|
// enterButton={'Filter'}
|
|
|
|
|
/>
|
|
|
|
|
{/* TODO 这个在完成搜索历史会话后去掉,待讨论查询规则 */}
|
|
|
|
|
|
|
|
|
|
{conversationsListLoading ? (
|
|
|
|
|
<div className='text-center py-1 px-2'>
|
|
|
|
|
<LoadingOutlined className='text-primary ' />
|
|
|
|
|
</div>
|
|
|
|
|
) :
|
|
|
|
|
<Tooltip key={'conversation-list'} title={activeList ? '隐藏会话' : '活跃会话'}>
|
|
|
|
|
<Button onClick={toggleClosedConversationsList} icon={activeList ? <HistoryOutlined className='text-neutral-500' /> : <FireOutlined className=' text-orange-500' />} type='text' />
|
|
|
|
|
</Tooltip>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
<ChatListFilter key='chat-list-filter'
|
|
|
|
|
onFilterChange={(d) => {
|
|
|
|
@ -329,11 +336,6 @@ const Conversations = () => {
|
|
|
|
|
/>
|
|
|
|
|
<div className='flex-1 overflow-x-hidden overflow-y-auto relative'>
|
|
|
|
|
{/* {mobile && conversationsListLoading && dataSource.length === 0 ? ( */}
|
|
|
|
|
{conversationsListLoading && currentLoading ? (
|
|
|
|
|
<div className='text-center py-2'>
|
|
|
|
|
<LoadingOutlined className='text-primary ' />
|
|
|
|
|
</div>
|
|
|
|
|
) : null}
|
|
|
|
|
|
|
|
|
|
<List
|
|
|
|
|
itemLayout='vertical'
|
|
|
|
|