From 5fb58c10b2bb44b3f2d3bdab4d7a6619271e2bbf Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期三, 02 四月 2025 17:51:39 +0800
Subject: [PATCH] smallScreenClick

---
 src/layout/component/header/Header.vue |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/layout/component/header/Header.vue b/src/layout/component/header/Header.vue
index 3f7e120..e5e275e 100644
--- a/src/layout/component/header/Header.vue
+++ b/src/layout/component/header/Header.vue
@@ -33,7 +33,7 @@
 				</p>
 			</template>
 		</el-dialog>
-		
+
 		<el-tooltip content="鏈�灏忓寲" placement="bottom">
 			<span class="cursor-pointer ywifont ywicon-tuichuquanping" size="15px" @click="smallScreenClick" />
 		</el-tooltip>
@@ -47,12 +47,12 @@
 import { systemNotifyList } from '/@/api/ai/chat';
 import router from '/@/router';
 import pinia from '/@/stores';
-import { activeChatRoom, activeRoomId, isSharePage, newChatRoomClick } from '/@/stores/chatRoom';
+import { activeChatRoom, newChatRoomClick, sidebarIsShow } from '/@/stores/chatRoom';
+import { ParentRegister } from '/@/stores/global';
 import { useThemeConfig } from '/@/stores/themeConfig';
 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({
@@ -64,6 +64,9 @@
 });
 
 const smallScreenClick = () => {
+	const pathname = window.location.pathname;
+	const basePath = pathname.replace(/\/web\/index\.html$/, '');
+	window.location.href = basePath || '/';
 	ParentRegister.notify?.({
 		type: 'fullScreen',
 		value: false,

--
Gitblit v1.9.3