diff --git a/view/molistar/home/index.html b/view/molistar/home/index.html index 41aecc5..fc58ea3 100644 --- a/view/molistar/home/index.html +++ b/view/molistar/home/index.html @@ -161,7 +161,7 @@ - + diff --git a/view/molistar/home/js/index.js b/view/molistar/home/js/index.js index 45a5769..630abdf 100644 --- a/view/molistar/home/js/index.js +++ b/view/molistar/home/js/index.js @@ -358,4 +358,12 @@ function animatedFun(dom, arrClass) { // 禁止瀏覽器下拉刷新 document.addEventListener('touchmove', event => { event.preventDefault() -}, { passive: false }) \ No newline at end of file +}, { passive: false }) +// 定义处理窗口大小变化的函数 +function handleResize() { + location.reload() + // 这里可以添加更多的逻辑,比如检查窗口的新尺寸 +} + +// 监听窗口大小变化事件 +window.addEventListener('resize', handleResize); \ No newline at end of file