feat: 抽屉效果再app不兼容问题处理

This commit is contained in:
2026-05-11 16:04:41 +08:00
parent 9cd3916ab2
commit 0dfd4fda1e
5 changed files with 41 additions and 17 deletions

View File

@@ -5,6 +5,7 @@
<ChatTopNavBar
ref="topNavBarRef"
:mainPageDataModel="mainPageDataModel"
@showDrawer="handleShowDrawer"
/>
</view>
@@ -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);