修复年度页面异常问题
This commit is contained in:
@@ -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);
|
||||
}
|
Reference in New Issue
Block a user