From a53d6201839688bfe259702e191f34314d06133c Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期六, 12 四月 2025 18:00:19 +0800
Subject: [PATCH] 关闭数字人

---
 src/layout/component/header/Header.vue |   48 ++++++++++++++++++++++++++----------------------
 1 files changed, 26 insertions(+), 22 deletions(-)

diff --git a/src/layout/component/header/Header.vue b/src/layout/component/header/Header.vue
index 761511f..5a8bf9e 100644
--- a/src/layout/component/header/Header.vue
+++ b/src/layout/component/header/Header.vue
@@ -25,28 +25,10 @@
 				</p>
 			</template>
 		</el-dialog>
-	</div>
-	<div class="notice" v-if="!isSharePage">
-		<el-badge :value="`${state.announcementList.length}`" :hidden="announcementIsRead || state.announcementList?.length === 0">
-			<el-button link size="small" icon="ele-Message" class="set-notice" @click="handleAnnouncementClick">绯荤粺鍏憡</el-button>
-		</el-badge>
-		<div class="notice_box notice_box_show" v-show="state.isShowAnnouncement" ref="noticeRef">
-			<div class="notice_box_header">
-				<span>鏈�鏂板叕鍛�</span>
-			</div>
-			<div class="notice_box_body">
-				<div class="notice_item" v-for="item in state.announcementList" :key="item.notify_id" @click="announcementContentClick(item)">
-					<div class="flex items-center">
-						<p class="set-circle"></p>
-						<p>{{ item.notify_message }}</p>
-					</div>
 
-					<p class="text-right mr-[19px]">
-						<span>{{ item.notify_time }}</span>
-					</p>
-				</div>
-			</div>
-		</div>
+		<el-tooltip content="鏈�灏忓寲" placement="bottom">
+			<span class="cursor-pointer ywifont ywicon-tuichuquanping" size="15px" @click="smallScreenClick" />
+		</el-tooltip>
 	</div>
 </template>
 
@@ -57,8 +39,18 @@
 import { systemNotifyList } from '/@/api/ai/chat';
 import router from '/@/router';
 import pinia from '/@/stores';
-import { activeChatRoom, activeRoomId, activeTopMenuStyle, isSharePage, newChatRoomClick, TopMenuStyle } from '/@/stores/chatRoom';
+import {
+	activeChatRoom,
+	activeRoomId,
+	activeTopMenuStyle,
+	isSharePage,
+	newChatRoomClick,
+	TopMenuStyle,
+	sidebarIsShow,
+} from '/@/stores/chatRoom';
 import { useThemeConfig } from '/@/stores/themeConfig';
+import { ParentRegister } from '/@/stores/global';
+
 import emitter from '/@/utils/mitt';
 import { userInfoKey } from '/@/utils/request';
 import { Local } from '/@/utils/storage';
@@ -87,6 +79,8 @@
 		label: 'GIS绯荤粺',
 	};
 
+	return [smartAssistant];
+
 	switch (activeTopMenuStyle.value) {
 		case TopMenuStyle.Normal:
 			return [smartAssistant, personalWorkbench];
@@ -97,6 +91,16 @@
 			return [smartAssistant];
 	}
 });
+
+const smallScreenClick = () => {
+	const pathname = window.location.pathname;
+	const basePath = pathname.replace(/\/web\/index\.html$/, '/index.html/');
+	window.location.href = basePath || '/';
+	ParentRegister.notify?.({
+		type: 'fullScreen',
+		value: false,
+	});
+};
 const firstToPath = computed(() => {
 	if (!activeChatRoom.value)
 		return {

--
Gitblit v1.9.3