From 2c65df541b7a6ed14b5dd42235cea535de0f0758 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期三, 02 四月 2025 15:52:13 +0800
Subject: [PATCH] fullScreen

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

diff --git a/src/layout/component/header/Header.vue b/src/layout/component/header/Header.vue
index 3c12b81..3f7e120 100644
--- a/src/layout/component/header/Header.vue
+++ b/src/layout/component/header/Header.vue
@@ -33,28 +33,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>
 
@@ -70,6 +52,7 @@
 import emitter from '/@/utils/mitt';
 import { userInfoKey } from '/@/utils/request';
 import { Local } from '/@/utils/storage';
+import { ParentRegister } from '/@/stores/global';
 
 const props = defineProps(['sidebarIsShow']);
 let state = reactive({
@@ -79,6 +62,13 @@
 	announcementContent: '',
 	announcementTime: '',
 });
+
+const smallScreenClick = () => {
+	ParentRegister.notify?.({
+		type: 'fullScreen',
+		value: false,
+	});
+};
 const firstToPath = computed(() => {
 	if (!activeChatRoom.value)
 		return {

--
Gitblit v1.9.3