From acaf8207447eb243e1dc8bec3aaca447cc4d082f Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期三, 17 七月 2024 16:32:58 +0800
Subject: [PATCH] error msg

---
 src/components/chat/Chat.vue |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/components/chat/Chat.vue b/src/components/chat/Chat.vue
index e128e77..897cbdf 100644
--- a/src/components/chat/Chat.vue
+++ b/src/components/chat/Chat.vue
@@ -1,7 +1,7 @@
 <template>
 	<div class="flex flex-col h-full">
 		<div class="h-full flex flex-col items-center overflow-y-auto">
-			<div ref="chatListDom" class="h-full" :style="{width:chatWidth}">
+			<div ref="chatListDom" class="h-full" :style="{ width: chatWidth }">
 				<div
 					class="group flex px-4 py-6 hover:bg-slate-100 rounded-lg"
 					:class="{ 'flex-row-reverse': item.role === RoleEnum.user }"
@@ -19,8 +19,8 @@
 					<div class="flex" :class="{ 'w-full': item.role === RoleEnum.assistant }">
 						<div class="relative w-full" v-if="item.content?.values">
 							<div
-								class="text-sm rounded-[6px] p-4 leading-relaxed "
-								:style="{backgroundColor:item.role ===RoleEnum.user? 'rgb(197 224 255)':'white'}"
+								class="text-sm rounded-[6px] p-4 leading-relaxed"
+								:style="{ backgroundColor: item.role === RoleEnum.user ? 'rgb(197 224 255)' : 'white' }"
 							>
 								<component :is="answerTypeMapCom[item.content.type]" :data="item.content.values" :error="item.content.error" />
 							</div>
@@ -56,7 +56,12 @@
 		</div>
 
 		<div class="sticky bottom-0 w-full p-6 pb-8 bg-[rgb(247,248,250)] flex justify-center">
-			<PlayBar :isTalking="isTalking" v-model="messageContent.values" @sendClick="sendChatMessage"  :style="{width:chatWidth}"></PlayBar>
+			<PlayBar
+				:isTalking="isTalking"
+				v-model="messageContent.values"
+				@sendClick="sendChatMessage"
+				:style="{ width: chatWidth }"
+			></PlayBar>
 		</div>
 	</div>
 </template>
@@ -119,7 +124,7 @@
 			content = {
 				type: AnswerType.Summary,
 				values: res.summary,
-				error: res.error ?? res.json_msg,
+				error: res.json_msg,
 			};
 			break;
 		case AnswerType.Url:

--
Gitblit v1.9.3