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'