From c054dca2e8edd8e00627bb7044ea66fee8f8aa97 Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Thu, 19 Jun 2025 09:29:25 +0800 Subject: [PATCH] fix --- src/views/HomeView/Works.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/HomeView/Works.vue b/src/views/HomeView/Works.vue index af6cfbc3..64198d46 100644 --- a/src/views/HomeView/Works.vue +++ b/src/views/HomeView/Works.vue @@ -183,7 +183,7 @@ export default defineComponent({ } // 监听方向变化 - function setupOrientationListener(callback) { + function setupOrientationListener(callback:any) { // 标准事件 const handleOrientationChange = () => { callback(getScreenOrientation()); @@ -206,7 +206,7 @@ export default defineComponent({ } }; } - const cleanup = setupOrientationListener((orientation) => { + const cleanup = setupOrientationListener((orientation:any) => { if (orientation === 'portrait') { // 竖屏逻辑 return 'portrait'