From 186586ee4edf7bc92a8b902d185bacc6ec1ca643 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期四, 10 四月 2025 14:25:28 +0800
Subject: [PATCH] digitalHumanWidth

---
 vite.config.ts                                   |    2 +-
 src/components/chat/components/ChatContainer.vue |   14 ++++++++++----
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/components/chat/components/ChatContainer.vue b/src/components/chat/components/ChatContainer.vue
index 0116a0d..f61c49b 100644
--- a/src/components/chat/components/ChatContainer.vue
+++ b/src/components/chat/components/ChatContainer.vue
@@ -22,12 +22,17 @@
 					<i class="ywifont ywicon-xiangxiajiantou !text-[20px]" />
 				</div>
 			</div>
-			<div v-show="digitalHumanIsShow" v-loading="humanIsLoading" class="absolute right-28 bottom-[250px] w-[303.75px] h-[540px]">
-				<span class="ywifont ywicon-guanbi text-[20px] cursor-pointer absolute top-2 right-2 z-[1]" @click="closeDigitalHuman"></span>
+			<div
+				v-show="digitalHumanIsShow"
+				v-loading="humanIsLoading"
+				class="absolute right-0 bottom-0 z-[2]"
+				:style="{ width: digitalHumanWidth, height: `calc(${digitalHumanWidth} * 16 / 9)` }"
+			>
+				<span class="ywifont ywicon-guanbi text-[20px] cursor-pointer absolute top-7 right-7 z-[1]" @click="closeDigitalHuman"></span>
 				<div class="duix-container h-full w-full"></div>
 			</div>
 
-			<div v-if="!digitalHumanIsShow" class="absolute right-28 bottom-[250px]">
+			<div v-if="!digitalHumanIsShow" class="absolute right-[24px] bottom-[100px] z-[2]">
 				<el-tooltip content="鏁板瓧浜�" placement="top">
 					<div
 						class="flex items-center justify-center size-[38px] cursor-pointer hover:text-[#0284ff] border rounded-full hover:bg-[#f6f7f9] shadow bg-white"
@@ -74,12 +79,13 @@
 }>();
 
 const chatListDom = ref<HTMLDivElement>();
-const { openDigitalHuman, isHumanTalking, humanIsLoading,digitalHumanIsShow, closeDigitalHuman } = useDigitalHuman({
+const { openDigitalHuman, isHumanTalking, humanIsLoading, digitalHumanIsShow, closeDigitalHuman } = useDigitalHuman({
 	container: '.duix-container',
 });
 const { scrollToBottom, isBottom } = useScroll({
 	chatListDom,
 });
+const digitalHumanWidth = '240px';
 
 const fileContentIsShow = ref(false);
 
diff --git a/vite.config.ts b/vite.config.ts
index 719fdfd..6faa190 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -57,7 +57,7 @@
 			host: '0.0.0.0',
 			port: env.VITE_PORT as unknown as number,
 			open: JSON.parse(env.VITE_OPEN),
-			hmr: false,
+			hmr: true,
 			proxy: {
 				'/events': {
 					target: 'http://localhost:3000',

--
Gitblit v1.9.3