diff --git a/web/client/src/layout/components/header/index.js b/web/client/src/layout/components/header/index.js index 71ae3e8..7092e3b 100644 --- a/web/client/src/layout/components/header/index.js +++ b/web/client/src/layout/components/header/index.js @@ -18,9 +18,9 @@ function Header(props) { dispatch, history, user, pathname, toggleCollapsed, collapsed, actions, profile, onChangeTheme, } = props; - useEffect(() => { - user?.id && actions?.profile?.getProfile && dispatch(actions.profile.getProfile(user?.id)); - }, []); + // useEffect(() => { + // user?.id && actions?.profile?.getProfile && dispatch(actions.profile.getProfile(user?.id)); + // }, []); const changeTheme = (themeKey) => { localStorage.setItem('theme-name', themeKey); @@ -33,8 +33,8 @@ function Header(props) { const handelClick = (item) => { if (item.key === 'logout') { - dispatch(actions.auth.logout(user)); - sessionStorage.removeItem('selectedKeys'); + // dispatch(actions.auth.logout(user)); + // sessionStorage.removeItem('selectedKeys'); history.push('/brief'); } // else if (item.key === 'themeLight') { @@ -91,7 +91,7 @@ function Header(props) { 个人设置 */}