Commit 3ee45d4c authored by In's avatar In Committed by ι™ˆεΈ…

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

parent da173d60
...@@ -35,5 +35,6 @@ export const getDefaultCollapsedSubMenus = props => { ...@@ -35,5 +35,6 @@ export const getDefaultCollapsedSubMenus = props => {
} = props; } = props;
return urlToList(pathname) return urlToList(pathname)
.map(item => getMenuMatches(flatMenuKeys, item)[0]) .map(item => getMenuMatches(flatMenuKeys, item)[0])
.filter(item => item); .filter(item => item)
.reduce((acc, curr) => [...acc, curr], ['/']);
}; };
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment