Commit 65ad840b authored by Ekszz's avatar Ekszz Committed by ι™ˆε°θͺ

fix the problem that breadcrumbNameMap does not contain hidden menus. (#3606)

parent d15923c9
...@@ -104,8 +104,9 @@ export default { ...@@ -104,8 +104,9 @@ export default {
effects: { effects: {
*getMenuData({ payload }, { put }) { *getMenuData({ payload }, { put }) {
const { routes, authority } = payload; const { routes, authority } = payload;
const menuData = filterMenuData(memoizeOneFormatter(routes, authority)); const originalMenuData = memoizeOneFormatter(routes, authority);
const breadcrumbNameMap = memoizeOneGetBreadcrumbNameMap(menuData); const menuData = filterMenuData(originalMenuData);
const breadcrumbNameMap = memoizeOneGetBreadcrumbNameMap(originalMenuData);
yield put({ yield put({
type: 'save', type: 'save',
payload: { menuData, breadcrumbNameMap, routerData: routes }, payload: { menuData, breadcrumbNameMap, routerData: routes },
......
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