|
@@ -12,6 +12,7 @@ import GlobalFooter from '../components/GlobalFooter';
|
|
import SiderMenu from '../components/SiderMenu';
|
|
import SiderMenu from '../components/SiderMenu';
|
|
import NotFound from '../routes/Exception/404';
|
|
import NotFound from '../routes/Exception/404';
|
|
import { getRoutes } from '../utils/utils';
|
|
import { getRoutes } from '../utils/utils';
|
|
|
|
+import { getLocalUser } from '../utils/helper';
|
|
import { getMenuData } from '../common/menu';
|
|
import { getMenuData } from '../common/menu';
|
|
|
|
|
|
|
|
|
|
@@ -95,16 +96,19 @@ class BasicLayout extends React.PureComponent {
|
|
}
|
|
}
|
|
render() {
|
|
render() {
|
|
const {
|
|
const {
|
|
- currentUser, collapsed, fetchingNotices, notices, routerData, match, location, dispatch,
|
|
|
|
|
|
+ collapsed, fetchingNotices, notices, routerData, match, location, dispatch,
|
|
} = this.props;
|
|
} = this.props;
|
|
|
|
+ const currentUser = getLocalUser() || {};
|
|
const layout = (
|
|
const layout = (
|
|
<Layout>
|
|
<Layout>
|
|
- <SiderMenu
|
|
|
|
- collapsed={collapsed}
|
|
|
|
- location={location}
|
|
|
|
- dispatch={dispatch}
|
|
|
|
- isMobile={this.state.isMobile}
|
|
|
|
- />
|
|
|
|
|
|
+ {currentUser.platForm &&
|
|
|
|
+ <SiderMenu
|
|
|
|
+ collapsed={collapsed}
|
|
|
|
+ location={location}
|
|
|
|
+ dispatch={dispatch}
|
|
|
|
+ isMobile={this.state.isMobile}
|
|
|
|
+ />
|
|
|
|
+ }
|
|
<Layout>
|
|
<Layout>
|
|
<GlobalHeader
|
|
<GlobalHeader
|
|
currentUser={currentUser}
|
|
currentUser={currentUser}
|