balibabu
commited on
Commit
·
080762f
1
Parent(s):
2d687fd
fix: Fixed the issue where the conversation list was not displayed on the conversation page #2625 (#2638)
Browse files### 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)
web/src/assets/svg/plus-circle-fill.svg
ADDED
|
web/src/hooks/chat-hooks.ts
CHANGED
@@ -95,7 +95,6 @@ export const useFetchNextDialogList = () => {
|
|
95 |
initialData: [],
|
96 |
gcTime: 0,
|
97 |
refetchOnWindowFocus: false,
|
98 |
-
refetchOnMount: false,
|
99 |
queryFn: async (...params) => {
|
100 |
console.log('🚀 ~ queryFn: ~ params:', params);
|
101 |
const { data } = await chatService.listDialog();
|
|
|
95 |
initialData: [],
|
96 |
gcTime: 0,
|
97 |
refetchOnWindowFocus: false,
|
|
|
98 |
queryFn: async (...params) => {
|
99 |
console.log('🚀 ~ queryFn: ~ params:', params);
|
100 |
const { data } = await chatService.listDialog();
|
web/src/pages/chat/index.tsx
CHANGED
@@ -1,11 +1,6 @@
|
|
1 |
import { ReactComponent as ChatAppCube } from '@/assets/svg/chat-app-cube.svg';
|
2 |
import RenameModal from '@/components/rename-modal';
|
3 |
-
import {
|
4 |
-
CloudOutlined,
|
5 |
-
DeleteOutlined,
|
6 |
-
EditOutlined,
|
7 |
-
PlusOutlined,
|
8 |
-
} from '@ant-design/icons';
|
9 |
import {
|
10 |
Avatar,
|
11 |
Button,
|
@@ -35,6 +30,7 @@ import {
|
|
35 |
} from './hooks';
|
36 |
|
37 |
import ChatOverviewModal from '@/components/api-service/chat-overview-modal';
|
|
|
38 |
import {
|
39 |
useClickConversationCard,
|
40 |
useClickDialogCard,
|
@@ -297,7 +293,13 @@ const Chat = () => {
|
|
297 |
<Tag>{conversationList.length}</Tag>
|
298 |
</Space>
|
299 |
<Tooltip title={t('newChat')}>
|
300 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
301 |
</Tooltip>
|
302 |
</Flex>
|
303 |
<Divider></Divider>
|
|
|
1 |
import { ReactComponent as ChatAppCube } from '@/assets/svg/chat-app-cube.svg';
|
2 |
import RenameModal from '@/components/rename-modal';
|
3 |
+
import { CloudOutlined, DeleteOutlined, EditOutlined } from '@ant-design/icons';
|
|
|
|
|
|
|
|
|
|
|
4 |
import {
|
5 |
Avatar,
|
6 |
Button,
|
|
|
30 |
} from './hooks';
|
31 |
|
32 |
import ChatOverviewModal from '@/components/api-service/chat-overview-modal';
|
33 |
+
import SvgIcon from '@/components/svg-icon';
|
34 |
import {
|
35 |
useClickConversationCard,
|
36 |
useClickDialogCard,
|
|
|
293 |
<Tag>{conversationList.length}</Tag>
|
294 |
</Space>
|
295 |
<Tooltip title={t('newChat')}>
|
296 |
+
<div>
|
297 |
+
<SvgIcon
|
298 |
+
name="plus-circle-fill"
|
299 |
+
width={20}
|
300 |
+
onClick={handleCreateTemporaryConversation}
|
301 |
+
></SvgIcon>
|
302 |
+
</div>
|
303 |
</Tooltip>
|
304 |
</Flex>
|
305 |
<Divider></Divider>
|