This commit is contained in:
X1627315083
2025-06-19 09:29:25 +08:00
parent b69d202509
commit c054dca2e8

View File

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