fix(deploy): 前端资源 - 保留旧版本分片并恢复加载
This commit is contained in:
1 parent
117fa7d70b
commit
69b9f02937
8 files changed
+137
-6
No files matched your search
@@ -3,6 +3,7 @@ import { Home, RefreshCw } from "lucide-react";
|
||||
import { useNavigate, useRouteError } from "react-router";
|
||||
|
||||
import { WorkspaceSignalIcon } from "@/components/ui/aceternity/workspace-signal-icon";
|
||||
import { reloadAfterChunkFailure } from "@/lib/chunk-recovery";
|
||||
|
||||
export default function RouteErrorPage() {
|
||||
const error = useRouteError();
|
||||
@@ -17,7 +18,7 @@ export default function RouteErrorPage() {
|
||||
<h1 className="mt-3 text-2xl font-semibold">当前页面没有正常加载</h1>
|
||||
<p className="mt-3 break-words text-sm leading-6 text-muted-foreground">{message}</p>
|
||||
<div className="mt-6 flex justify-center gap-3">
|
||||
<Button icon={<RefreshCw className="size-4" />} onClick={() => window.location.reload()}>重新加载</Button>
|
||||
<Button icon={<RefreshCw className="size-4" />} onClick={reloadAfterChunkFailure}>重新加载</Button>
|
||||
<Button type="primary" icon={<Home className="size-4" />} onClick={() => navigate("/")}>返回主页</Button>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Reference in new issue
Block a user