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) {