Commit 2cd33b88 authored by 邓晓峰's avatar 邓晓峰

fix: securityLayout

parent 2686d559
Pipeline #21389 passed with stages
in 19 minutes 30 seconds
......@@ -617,7 +617,7 @@ const BasicLayout = props => {
};
const { openKeys } = props;
return (
<SecurityLayout loading>
<SecurityLayout loading updateCurrentIndex={props.updateCurrentIndex}>
<ProLayout
logo={`http://panda-water.cn/web4/${
props.global.bannerLogo
......
......@@ -37,6 +37,7 @@ class SecurityLayout extends React.Component {
!isLogin &&
window.location.pathname !== `/${getBaseName()}/user/login`
) {
this.props.updateCurrentIndex && this.props.updateCurrentIndex(0);
return <Redirect to={`/user/login?client=${global.client}`} />;
}
return children;
......
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