mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-05 13:08:48 +08:00
fix: 修复用户登出后回退还可以访问系统的问题
This commit is contained in:
@@ -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>
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user