fix: 修复用户登出后回退还可以访问系统的问题

This commit is contained in:
GraceWalk
2022-09-13 14:44:18 +08:00
parent b11000715a
commit 2e852e5ca6

View File

@@ -59,6 +59,7 @@ const logout = () => {
}).then((res) => { }).then((res) => {
window.location.href = '/login'; window.location.href = '/login';
}); });
localStorage.removeItem('userInfo');
}; };
const LicenseLimitModal = () => { const LicenseLimitModal = () => {
@@ -117,7 +118,7 @@ const AppContent = (props: { setlanguage: (language: string) => void }) => {
<DProLayout.Container <DProLayout.Container
headerProps={{ headerProps={{
title: ( title: (
<div> <div style={{ cursor: 'pointer' }}>
<img className="header-logo" src={ksLogo} /> <img className="header-logo" src={ksLogo} />
</div> </div>
), ),