From 88765401a11d7a2d27cdb7b6f806a291b3565f98 Mon Sep 17 00:00:00 2001 From: yezian Date: Tue, 6 Feb 2024 00:20:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/pay/[weixin]/page.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/pay/[weixin]/page.jsx b/app/pay/[weixin]/page.jsx index 3faf14e..ed872e1 100644 --- a/app/pay/[weixin]/page.jsx +++ b/app/pay/[weixin]/page.jsx @@ -40,7 +40,9 @@ export default function Weixin({ params }) { window.open("weixin://", "_blank"); return; } - window.open("weixin://scanqrcode", "_blank"); + var link = document.createElement("a"); + link.href = "weixin://scanqrcode"; + link.click(); }; if (isLoading) {