From 1581da1e3ec3d59c69db31c495027d0360ef0789 Mon Sep 17 00:00:00 2001 From: yuyx <237899745@qq.com> Date: Sun, 30 Nov 2025 13:12:41 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BC=98=E5=8C=96=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E8=A2=AB=E6=8B=A6=E6=88=AA=E6=97=B6=E7=9A=84=E5=A4=84?= =?UTF-8?q?=E7=90=86=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 弹窗被阻止时改为toast提示,避免当前页跳转 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- frontend/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/app.js b/frontend/app.js index 7b0768d..0eec044 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -2019,8 +2019,8 @@ handleDragLeave(e) { if (!url) return; const newWindow = window.open(url, '_blank', 'noopener'); if (!newWindow || newWindow.closed || typeof newWindow.closed === 'undefined') { - // 部分浏览器可能阻止弹窗,退回当前页跳转 - window.location.href = url; + // 弹窗被拦截时提示用户手动打开,避免当前页跳转 + this.showToast('info', '提示', '浏览器阻止了新标签页,请允许弹窗或手动打开链接'); } },