From 0e9a0d91235f6932567974c37bddd4213365e8d2 Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Tue, 4 Nov 2025 10:13:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=81=A2=E5=A4=8Dbugfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Auth/WechatRegister.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Auth/WechatRegister.js b/src/components/Auth/WechatRegister.js index 07af9a66..0ae33d19 100644 --- a/src/components/Auth/WechatRegister.js +++ b/src/components/Auth/WechatRegister.js @@ -509,7 +509,7 @@ export default function WechatRegister() { width="300" height="350" scrolling="no" // ✅ 新增:禁止滚动 - sandbox="allow-scripts allow-same-origin allow-forms" // ✅ 阻止iframe跳转父页面 + // sandbox="allow-scripts allow-same-origin allow-forms" // ✅ 阻止iframe跳转父页面 style={{ border: 'none', transform: 'scale(0.77) translateY(-35px)', // ✅ 裁剪顶部logo @@ -521,7 +521,6 @@ export default function WechatRegister() { // 使用 onWheel 事件阻止滚动 │ │ onWheel={(e) => e.preventDefault()} // ✅ 在父容器上阻止滚动 onTouchMove={(e) => e.preventDefault()} // ✅ 移动端也阻止 - /> ) : ( /* 未获取:显示占位符 */