fix(web): authLayout remove getStorageType
This commit is contained in:
@@ -13,7 +13,7 @@ const { Content } = Layout;
|
|||||||
|
|
||||||
// 认证布局组件,使用useRouteGuard hook进行路由鉴权
|
// 认证布局组件,使用useRouteGuard hook进行路由鉴权
|
||||||
const AuthLayout: FC = () => {
|
const AuthLayout: FC = () => {
|
||||||
const { getUserInfo, getStorageType } = useUser();
|
const { getUserInfo } = useUser();
|
||||||
// 使用路由守卫hook处理认证和权限检查
|
// 使用路由守卫hook处理认证和权限检查
|
||||||
useRouteGuard('manage');
|
useRouteGuard('manage');
|
||||||
// 自动更新面包屑导航
|
// 自动更新面包屑导航
|
||||||
@@ -24,7 +24,6 @@ const AuthLayout: FC = () => {
|
|||||||
window.location.href = `/#/login`;
|
window.location.href = `/#/login`;
|
||||||
} else {
|
} else {
|
||||||
getUserInfo()
|
getUserInfo()
|
||||||
getStorageType()
|
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user