perf(*): 创作工作台 - 优化首页按需加载与画布交互并修复历史迁移冲突

This commit is contained in:
ddCat committed 2026-09-05 13:24:10 +08:00
1 parent ca7ad1f9b2
commit 711d1b79eb
107 files changed
+3025 -1089

No files matched your search

-2
View File
@@ -1,7 +1,6 @@
import { useLayoutEffect, type ReactNode } from "react";
import { useLocation } from "react-router";
import { CanvasDeleteProjectsDialog } from "@/components/canvas/canvas-delete-projects-dialog";
import { AppWorkspaceShell } from "@/components/layout/app-top-nav";
import { cn } from "@/lib/utils";
import { isSpatialWorkbenchPath } from "@/lib/workspace-routes";
@@ -19,7 +18,6 @@ export default function UserLayout({ children }: { children: ReactNode }) {
return (
<div className={cn("app-user-workspace h-dvh overflow-hidden text-foreground", spatialWorkbench && "app-spatial-workspace")}>
<AppWorkspaceShell>{children}</AppWorkspaceShell>
<CanvasDeleteProjectsDialog />
</div>
);
}