fix
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user