Commit dcaa05b6 authored by 杨思琦's avatar 杨思琦

fix: 认证修改

parent bb9ceb66
Pipeline #84605 passed with stages
......@@ -316,6 +316,9 @@ const Layout = props => {
clear();
props.logout();
}
if(props.global.security === "1") {
store.off('event:unauthorized');
} else {
store.on('event:unauthorized', () => {
store.off('event:unauthorized');
const key = `open${Date.now()}`;
......@@ -342,6 +345,7 @@ const Layout = props => {
closeIcon: <></>,
});
});
}
return () => {
store.off('event:unauthorized');
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment