|
|
|
@ -48,7 +48,7 @@ class BasicLayout extends React.Component { |
|
|
|
componentDidMount() { |
|
|
|
const { |
|
|
|
dispatch, |
|
|
|
route: { routes, authority }, |
|
|
|
route: { routes, path, authority }, |
|
|
|
} = this.props; |
|
|
|
dispatch({ |
|
|
|
type: 'user/fetchCurrent', |
|
|
|
@ -58,7 +58,7 @@ class BasicLayout extends React.Component { |
|
|
|
}); |
|
|
|
dispatch({ |
|
|
|
type: 'menu/getMenuData', |
|
|
|
payload: { routes, authority }, |
|
|
|
payload: { routes, path, authority }, |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|