perf(*): 创作工作台 - 优化首页按需加载与画布交互并修复历史迁移冲突
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user