生产管理系统 - 未登录拦截 客户端中间件开发

This commit is contained in:
2025-10-31 17:34:23 +08:00
parent 0df19c9cfb
commit a1b3335664
3 changed files with 80 additions and 77 deletions

View File

@@ -2,6 +2,7 @@
import { useEffect } from 'react';
import { AuthProvider } from '@/components/auth/AuthContext';
import { ClientAuthInterceptor } from '@/components/auth/ClientAuthInterceptor';
export default function AppLayout({
children,
@@ -14,10 +15,12 @@ export default function AppLayout({
}, []);
return (
<html lang="en" suppressHydrationWarning>
<html lang="zh-CN" suppressHydrationWarning>
<body suppressHydrationWarning>
<AuthProvider>
{children}
<ClientAuthInterceptor>
{children}
</ClientAuthInterceptor>
</AuthProvider>
</body>
</html>