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 @@