From c97247b92bd96cdf04de7600724feb0bd3b0787c Mon Sep 17 00:00:00 2001 From: jxxghp Date: Mon, 11 May 2026 12:45:20 +0800 Subject: [PATCH] refactor: optimize initial loading view and viewport synchronization logic for iOS standalone mode --- index.html | 23 +++++++++++------------ src/App.vue | 3 ++- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/index.html b/index.html index 0e75ee92..b4c3f889 100644 --- a/index.html +++ b/index.html @@ -1,8 +1,6 @@ - { removeEl('#loading-bg') - // 启动阶段会锁定根节点滚动,待应用布局接管后再恢复,避免首屏出现瞬时纵向滚动条。 + // 启动阶段的根节点锁定只在 loader 存在时生效,移除后恢复正常页面与弹窗布局。 + document.documentElement.removeAttribute('data-launch-loading') document.documentElement.style.removeProperty('overflow') document.body.style.removeProperty('overflow') }, 120)