修复年度页面异常问题

This commit is contained in:
dragon
2025-01-17 16:10:23 +08:00
parent 5aafa4b884
commit 9311cd9740

View File

@@ -132,7 +132,7 @@ function get() {
length = length - 1;
}
console.log(length);
} else {
toastMsg(res.message)
}
@@ -143,15 +143,4 @@ function get() {
toastMsg(langReplace(localLang.demoModule.layerIndex3))
}
})
}
// 禁止瀏覽器下拉刷新
document.addEventListener('touchmove', event => {
event.preventDefault()
}, { passive: false })
// 定义处理窗口大小变化的函数
function handleResize() {
location.reload()
// 这里可以添加更多的逻辑,比如检查窗口的新尺寸
}
// 监听窗口大小变化事件
window.addEventListener('resize', handleResize);
}