mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 20:59:00 +08:00
fix: Fixed the issue where the conversation list was not displayed on the conversation page #2625 (#2638)
### What problem does this PR solve? fix: Fixed the issue where the conversation list was not displayed on the conversation page #2625 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
674d342761
commit
ff9c11c970
6
web/src/assets/svg/plus-circle-fill.svg
Normal file
6
web/src/assets/svg/plus-circle-fill.svg
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<svg t="1727489529326" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4261"
|
||||||
|
width="200" height="200">
|
||||||
|
<path
|
||||||
|
d="M448 448H192v128h256v256h128V576h256V448H576V192H448v256z m64 576A512 512 0 1 1 512 0a512 512 0 0 1 0 1024z"
|
||||||
|
fill="#1677ff" p-id="4262"></path>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 330 B |
@ -95,7 +95,6 @@ export const useFetchNextDialogList = () => {
|
|||||||
initialData: [],
|
initialData: [],
|
||||||
gcTime: 0,
|
gcTime: 0,
|
||||||
refetchOnWindowFocus: false,
|
refetchOnWindowFocus: false,
|
||||||
refetchOnMount: false,
|
|
||||||
queryFn: async (...params) => {
|
queryFn: async (...params) => {
|
||||||
console.log('🚀 ~ queryFn: ~ params:', params);
|
console.log('🚀 ~ queryFn: ~ params:', params);
|
||||||
const { data } = await chatService.listDialog();
|
const { data } = await chatService.listDialog();
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
import { ReactComponent as ChatAppCube } from '@/assets/svg/chat-app-cube.svg';
|
import { ReactComponent as ChatAppCube } from '@/assets/svg/chat-app-cube.svg';
|
||||||
import RenameModal from '@/components/rename-modal';
|
import RenameModal from '@/components/rename-modal';
|
||||||
import {
|
import { CloudOutlined, DeleteOutlined, EditOutlined } from '@ant-design/icons';
|
||||||
CloudOutlined,
|
|
||||||
DeleteOutlined,
|
|
||||||
EditOutlined,
|
|
||||||
PlusOutlined,
|
|
||||||
} from '@ant-design/icons';
|
|
||||||
import {
|
import {
|
||||||
Avatar,
|
Avatar,
|
||||||
Button,
|
Button,
|
||||||
@ -35,6 +30,7 @@ import {
|
|||||||
} from './hooks';
|
} from './hooks';
|
||||||
|
|
||||||
import ChatOverviewModal from '@/components/api-service/chat-overview-modal';
|
import ChatOverviewModal from '@/components/api-service/chat-overview-modal';
|
||||||
|
import SvgIcon from '@/components/svg-icon';
|
||||||
import {
|
import {
|
||||||
useClickConversationCard,
|
useClickConversationCard,
|
||||||
useClickDialogCard,
|
useClickDialogCard,
|
||||||
@ -297,7 +293,13 @@ const Chat = () => {
|
|||||||
<Tag>{conversationList.length}</Tag>
|
<Tag>{conversationList.length}</Tag>
|
||||||
</Space>
|
</Space>
|
||||||
<Tooltip title={t('newChat')}>
|
<Tooltip title={t('newChat')}>
|
||||||
<PlusOutlined onClick={handleCreateTemporaryConversation} />
|
<div>
|
||||||
|
<SvgIcon
|
||||||
|
name="plus-circle-fill"
|
||||||
|
width={20}
|
||||||
|
onClick={handleCreateTemporaryConversation}
|
||||||
|
></SvgIcon>
|
||||||
|
</div>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</Flex>
|
</Flex>
|
||||||
<Divider></Divider>
|
<Divider></Divider>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user