添加GlobalError页面

This commit is contained in:
yezian 2024-02-06 01:04:47 +08:00
parent 80435f9478
commit 86a11d6c8f
1 changed files with 23 additions and 0 deletions

23
app/global-error.jsx Normal file
View File

@ -0,0 +1,23 @@
"use client";
export default function GlobalError({ error, reset }) {
return (
<html
lang="zh-CN"
className="bg-[#07050A]"
data-prefers-color-scheme="dark"
>
<body className="box-border min-h-screen flex flex-col">
<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>
</body>
</html>
);
}