diff --git a/src/models/menu.js b/src/models/menu.js index f04991631e21dab92dd2f07f756339aa84d599c7..55e7909c5b451bc3487f09c1252bd744954ddabf 100644 --- a/src/models/menu.js +++ b/src/models/menu.js @@ -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 },