From c824ac2b72f9589daf91571fda969e6bf4a79f64 Mon Sep 17 00:00:00 2001 From: zhaoying Date: Fri, 16 Jan 2026 17:02:54 +0800 Subject: [PATCH] fix(web): authLayout remove getStorageType --- web/src/components/Layout/AuthLayout.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/src/components/Layout/AuthLayout.tsx b/web/src/components/Layout/AuthLayout.tsx index 94d28e11..a969298d 100644 --- a/web/src/components/Layout/AuthLayout.tsx +++ b/web/src/components/Layout/AuthLayout.tsx @@ -13,7 +13,7 @@ const { Content } = Layout; // 认证布局组件,使用useRouteGuard hook进行路由鉴权 const AuthLayout: FC = () => { - const { getUserInfo, getStorageType } = useUser(); + const { getUserInfo } = useUser(); // 使用路由守卫hook处理认证和权限检查 useRouteGuard('manage'); // 自动更新面包屑导航 @@ -24,7 +24,6 @@ const AuthLayout: FC = () => { window.location.href = `/#/login`; } else { getUserInfo() - getStorageType() } }, []);