From 3d83f4928af05502b3c5797eaaaeb4daa37a9458 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 15 May 2024 19:45:19 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91AI?= =?UTF-8?q?=EF=BC=9A=E8=81=8A=E5=A4=A9=E5=AF=B9=E8=AF=9D=E7=9A=84=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ai/chat/conversation/index.ts | 2 +- .../components/ChatConversationUpdateForm.vue | 95 +++++++++++-------- src/views/ai/chat/index.vue | 36 ++----- 3 files changed, 67 insertions(+), 66 deletions(-) diff --git a/src/api/ai/chat/conversation/index.ts b/src/api/ai/chat/conversation/index.ts index e0ee8501..8ff4990f 100644 --- a/src/api/ai/chat/conversation/index.ts +++ b/src/api/ai/chat/conversation/index.ts @@ -21,7 +21,7 @@ export interface ChatConversationVO { // AI 聊天会话 API export const ChatConversationApi = { // 获得【我的】聊天会话 - getChatConversationMy: async (id: string) => { + getChatConversationMy: async (id: number) => { return await request.get({ url: `/ai/chat/conversation/get-my?id=${id}` }) }, // 更新【我的】聊天会话 diff --git a/src/views/ai/chat/components/ChatConversationUpdateForm.vue b/src/views/ai/chat/components/ChatConversationUpdateForm.vue index 0a754dd8..fe08ffb2 100644 --- a/src/views/ai/chat/components/ChatConversationUpdateForm.vue +++ b/src/views/ai/chat/components/ChatConversationUpdateForm.vue @@ -4,23 +4,46 @@ ref="formRef" :model="formData" :rules="formRules" - label-width="100px" + label-width="130px" v-loading="formLoading" > - - + + - + + + - - + + - - + + - - + +