From 0dfd4fda1ec87b785b108cb2c8d7076183d9ad03 Mon Sep 17 00:00:00 2001 From: zoujing Date: Mon, 11 May 2026 16:04:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8A=BD=E5=B1=89=E6=95=88=E6=9E=9C?= =?UTF-8?q?=E5=86=8Dapp=E4=B8=8D=E5=85=BC=E5=AE=B9=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/ChatMain/ChatMainList/index.vue | 6 ++++++ src/pages/ChatMain/ChatTopNavBar/index.vue | 8 ++++++-- .../ChatMain/ChatTopNavBar/styles/index.scss | 10 +++++++++- src/pages/DrawerSection/index.vue | 17 +++++++++++------ src/pages/index/index.vue | 17 +++++++++-------- 5 files changed, 41 insertions(+), 17 deletions(-) diff --git a/src/pages/ChatMain/ChatMainList/index.vue b/src/pages/ChatMain/ChatMainList/index.vue index 2dd9d33..2e7960c 100644 --- a/src/pages/ChatMain/ChatMainList/index.vue +++ b/src/pages/ChatMain/ChatMainList/index.vue @@ -5,6 +5,7 @@ @@ -257,6 +258,7 @@ import { checkToken } from "@/hooks/useGoLogin"; import { useAppStore } from "@/store"; import { getAccessToken } from "@/constant/token"; +const emit = defineEmits(["showDrawer"]); const appStore = useAppStore(); /// 导航栏相关 const statusBarHeight = ref(20); @@ -331,6 +333,10 @@ const handleChange = (i) => { console.log("切换:", i); }; +const handleShowDrawer = () => { + emit("showDrawer"); +}; + /// =============事件函数↓================ const handleTouchEnd = () => { clearTimeout(holdKeyboardTimer.value); diff --git a/src/pages/ChatMain/ChatTopNavBar/index.vue b/src/pages/ChatMain/ChatTopNavBar/index.vue index aff48fc..5c37800 100644 --- a/src/pages/ChatMain/ChatTopNavBar/index.vue +++ b/src/pages/ChatMain/ChatTopNavBar/index.vue @@ -1,6 +1,8 @@