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