Browse Source

feat: Routing is in the root directory can also matchs. (#3364)

pull/3440/head
In 7 years ago
committed by 陈帅
parent
commit
3ee45d4c86
  1. 3
      src/components/SiderMenu/SiderMenuUtils.js

3
src/components/SiderMenu/SiderMenuUtils.js

@ -35,5 +35,6 @@ export const getDefaultCollapsedSubMenus = props => {
} = props;
return urlToList(pathname)
.map(item => getMenuMatches(flatMenuKeys, item)[0])
.filter(item => item);
.filter(item => item)
.reduce((acc, curr) => [...acc, curr], ['/']);
};

Loading…
Cancel
Save