fix
This commit is contained in:
@@ -183,7 +183,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 监听方向变化
|
// 监听方向变化
|
||||||
function setupOrientationListener(callback) {
|
function setupOrientationListener(callback:any) {
|
||||||
// 标准事件
|
// 标准事件
|
||||||
const handleOrientationChange = () => {
|
const handleOrientationChange = () => {
|
||||||
callback(getScreenOrientation());
|
callback(getScreenOrientation());
|
||||||
@@ -206,7 +206,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
const cleanup = setupOrientationListener((orientation) => {
|
const cleanup = setupOrientationListener((orientation:any) => {
|
||||||
if (orientation === 'portrait') {
|
if (orientation === 'portrait') {
|
||||||
// 竖屏逻辑
|
// 竖屏逻辑
|
||||||
return 'portrait'
|
return 'portrait'
|
||||||
|
|||||||
Reference in New Issue
Block a user