|  |  | 
 |  |  |             break; | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |     addHomeMenu(remoteMenu); | 
 |  |  |     addUserSettingMenu(remoteMenu); | 
 |  |  |     patchRouteItems(proLayout, remoteMenu); | 
 |  |  | } | 
 |  |  |  | 
 |  |  | function patchRouteItems(parent, children) { | 
 |  |  |     for (const menu of children) { | 
 |  |  |         if (menu.component !== null) { | 
 |  |  |         if (menu.component !== null && menu.component !== undefined) { | 
 |  |  |             // children | 
 |  |  |             const Component = require(`@/pages${menu.path}/index.jsx`).default | 
 |  |  |             const newRoute = { | 
 |  |  | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  | } | 
 |  |  |  | 
 |  |  | function addHomeMenu(remoteMenu) { | 
 |  |  |     remoteMenu.unshift({ | 
 |  |  |         name: "首页", | 
 |  |  |         path: "/home", | 
 |  |  |         component: "/home", | 
 |  |  |         icon: createIcon('HomeOutlined') | 
 |  |  |     }) | 
 |  |  | } | 
 |  |  |  | 
 |  |  | function addUserSettingMenu(remoteMenu) { | 
 |  |  |     // const settingRoute = { | 
 |  |  |     //     name: "个人设置", | 
 |  |  |     //     path: "/account/setting", | 
 |  |  |     //     component: "/account/setting" | 
 |  |  |     // } | 
 |  |  |     // remoteMenu.push({ | 
 |  |  |     //     name: "个人中心", | 
 |  |  |     //     path: "/account", | 
 |  |  |     //     component: null, | 
 |  |  |     //     routes: [settingRoute], | 
 |  |  |     //     icon: createIcon('UserOutlined') | 
 |  |  |     // }) | 
 |  |  |  | 
 |  |  |     remoteMenu.push({ | 
 |  |  |         name: "个人中心", | 
 |  |  |         path: "/account/setting", | 
 |  |  |         component: "/account/setting", | 
 |  |  |         icon: createIcon('UserOutlined') | 
 |  |  |     }) | 
 |  |  | } |