From ed459ba52b9d994acc87e5d45f9293069a2f4aaa Mon Sep 17 00:00:00 2001
From: gerson <1405270578@qq.com>
Date: 星期六, 10 八月 2024 22:35:12 +0800
Subject: [PATCH] sample_id,section_a_id

---
 miniprogram/model/chat/types.ts |   23 +++++++++++++----------
 1 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/miniprogram/model/chat/types.ts b/miniprogram/model/chat/types.ts
index 65c052b..2f9be73 100644
--- a/miniprogram/model/chat/types.ts
+++ b/miniprogram/model/chat/types.ts
@@ -1,11 +1,14 @@
-export const enum AnswerType {
-	Knowledge = 'knowledge',
-	RecordSet = 'recordset',
-	Text = 'text',
-	Summary = 'summary',
-	Url = 'url',
-	Map = 'map',
+import { STATIC_FILE_BASE_URL } from "@/config/constants";
+
+export const  AnswerType ={
+	Knowledge : 'knowledge',
+	RecordSet : 'recordset',
+	Text : 'text',
+	Summary : 'summary',
+	Url : 'url',
+	Map : 'map',
 }
+export type AnswerTypeType = typeof AnswerType;
 
 // export const answerTypeMapCom = {
 // 	[AnswerType.Knowledge]: knowledgeCom,
@@ -36,7 +39,7 @@
 };
 
 export type ChatContent = {
-	type: AnswerType;
+	type: AnswerTypeType[keyof AnswerTypeType];
 	values: any;
 	askMoreList?: ContextHistory[];
 	errCode?: string;
@@ -52,6 +55,6 @@
 }
 
 export const roleImageMap = {
-	[RoleEnum.user]: '/assets/images/user.png',
-	[RoleEnum.assistant]: '/assets/images/assistant.jpg',
+	[RoleEnum.user]: STATIC_FILE_BASE_URL+'/static/images/role/user.svg',
+	[RoleEnum.assistant]:STATIC_FILE_BASE_URL+ '/static/images/role/assistant.jpg',
 };

--
Gitblit v1.9.3