fix(data): 增加全局保存失败保护

This commit is contained in:
Script Generator
2026-07-03 19:36:18 +08:00
parent 516a5f1b63
commit b4a3c990b4
17 changed files with 727 additions and 132 deletions

View File

@@ -3,6 +3,7 @@
import { usePathname } from 'next/navigation';
import { Sidebar } from '@/components/layout/Sidebar';
import { AuthGuard } from '@/components/AuthGuard';
import { ServerDataSaveErrorBanner } from '@/components/ServerDataSaveErrorBanner';
export function LayoutShell({ children }: { children: React.ReactNode }) {
const pathname = usePathname();
@@ -10,6 +11,7 @@ export function LayoutShell({ children }: { children: React.ReactNode }) {
return (
<AuthGuard>
<ServerDataSaveErrorBanner />
{isLoginPage ? (
<>{children}</>
) : (