From a3040e5c7f843c052eaad6be90fe978e0687b1ba Mon Sep 17 00:00:00 2001 From: zm2000 <18386612143@163.com> Date: Tue, 26 May 2026 13:39:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9PC=E7=AB=AF=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/login/login.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pages/login/login.vue b/src/pages/login/login.vue index ff3d869..8535984 100644 --- a/src/pages/login/login.vue +++ b/src/pages/login/login.vue @@ -591,11 +591,10 @@ export default { this.logScanDebug('attach-listener-start', { hasWindow, hasDocument }) const targets = [] - if (hasWindow) { - targets.push(window) - } if (hasDocument) { targets.push(document) + } else if (hasWindow) { + targets.push(window) } if (!targets.length) { this.logScanDebug('attach-listener-failed', { reason: 'no-window-or-document' })