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 {
effects: {
*getMenuData({ payload }, { put }) {
const { routes, authority } = payload;
const menuData = filterMenuData(memoizeOneFormatter(routes, authority));
const breadcrumbNameMap = memoizeOneGetBreadcrumbNameMap(menuData);
const originalMenuData = memoizeOneFormatter(routes, authority);
const menuData = filterMenuData(originalMenuData);
const breadcrumbNameMap = memoizeOneGetBreadcrumbNameMap(originalMenuData);
yield put({
type: 'save',
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