- 优化,登陆页面获取菜单会失败,
This commit is contained in:
parent
08cbed2483
commit
7452ec68ae
@ -36,14 +36,14 @@ const copyright = (
|
||||
|
||||
class UserLayout extends Component {
|
||||
componentDidMount() {
|
||||
const {
|
||||
dispatch,
|
||||
route: { routes, authority },
|
||||
} = this.props;
|
||||
dispatch({
|
||||
type: 'menu/getMenuData',
|
||||
payload: { routes, authority },
|
||||
});
|
||||
// const {
|
||||
// dispatch,
|
||||
// route: { routes, authority },
|
||||
// } = this.props;
|
||||
// dispatch({
|
||||
// type: 'menu/getMenuData',
|
||||
// payload: { routes, authority },
|
||||
// });
|
||||
}
|
||||
|
||||
render() {
|
||||
|
Loading…
Reference in New Issue
Block a user