- 优化,登陆页面获取菜单会失败,

master
sin 7 years ago
parent 08cbed2483
commit 7452ec68ae

@ -36,14 +36,14 @@ const copyright = (
class UserLayout extends Component { class UserLayout extends Component {
componentDidMount() { componentDidMount() {
const { // const {
dispatch, // dispatch,
route: { routes, authority }, // route: { routes, authority },
} = this.props; // } = this.props;
dispatch({ // dispatch({
type: 'menu/getMenuData', // type: 'menu/getMenuData',
payload: { routes, authority }, // payload: { routes, authority },
}); // });
} }
render() { render() {

Loading…
Cancel
Save