Browse Source

bug: fix authorities of root route were not be injected in Authorized component (#2861)

pull/2876/head
Mutrix 7 years ago
committed by 陈帅
parent
commit
f3ec5fa9a6
  1. 4
      src/layouts/BasicLayout.js

4
src/layouts/BasicLayout.js

@ -143,9 +143,9 @@ class BasicLayout extends React.PureComponent {
getMenuData() {
const {
route: { routes },
route: { routes, path, authority },
} = this.props;
return memoizeOneFormatter(routes);
return memoizeOneFormatter(routes, path, authority);
}
/**

Loading…
Cancel
Save