为微信native支付页面添加error页面

This commit is contained in:
yezian 2024-02-06 00:49:42 +08:00
parent 61fa287367
commit 80435f9478
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,15 @@
"use client"; // Error components must be Client Components
export default function Error() {
return (
<section className="flex flex-1 flex-col container py-4">
<div className="mt-24 flex flex-col gap-2">
<h1 className="text-white text-2xl font-semibold text-center">
请打开微信扫码支付
<br />
完成支付后关闭此页面即可
</h1>
</div>
</section>
);
}

View File

@ -40,7 +40,7 @@ export default function Weixin({ params }) {
window.open("weixin://", "_blank");
return;
}
window.open("weixin://", "_blank");
window.open("weixin://scanqrcode", "_blank");
};
if (isLoading) {