生产管理系统 - 未登录拦截 客户端中间件开发
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user