为微信native支付页面添加error页面
This commit is contained in:
parent
61fa287367
commit
80435f9478
|
@ -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>
|
||||
);
|
||||
}
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue