diff --git a/dist.rar b/dist.rar deleted file mode 100644 index 2ac888e..0000000 Binary files a/dist.rar and /dev/null differ diff --git a/src/api/chat/index.ts b/src/api/chat/index.ts index 8b8a6fe..6b86041 100644 --- a/src/api/chat/index.ts +++ b/src/api/chat/index.ts @@ -2,7 +2,7 @@ import type { ChatMessageVo, GetChatListParams, SendDTO } from './types'; import { get, post } from '@/utils/request'; // 发送消息 -export const send = (data: SendDTO) => post('/chat/send', data).stream(); +export const send = (data: SendDTO) => post('/chat/send', data); // 新增对应会话聊天记录 export function addChat(data: ChatMessageVo) { diff --git a/src/api/index.ts b/src/api/index.ts index 62e8022..45696c0 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -1,2 +1,4 @@ export * from './auth'; +export * from './chat'; +export * from './model'; export * from './session'; diff --git a/src/layouts/components/Aside/index.vue b/src/layouts/components/Aside/index.vue index 6faedd4..f4e8f83 100644 --- a/src/layouts/components/Aside/index.vue +++ b/src/layouts/components/Aside/index.vue @@ -3,7 +3,7 @@ import type { ConversationItem } from 'vue-element-plus-x/types/Conversations'; import type { ChatSessionVo } from '@/api/session/types'; import { useRoute, useRouter } from 'vue-router'; -import { get_session } from '@/api/session'; +import { get_session } from '@/api'; import logo from '@/assets/images/logo.png'; import SvgIcon from '@/components/SvgIcon/index.vue'; import Collapse from '@/layouts/components/Header/components/Collapse.vue'; diff --git a/src/pages/chat/layouts/chatWithId/index.vue b/src/pages/chat/layouts/chatWithId/index.vue index 08fbe81..bce0d1d 100644 --- a/src/pages/chat/layouts/chatWithId/index.vue +++ b/src/pages/chat/layouts/chatWithId/index.vue @@ -1,5 +1,6 @@