747575620@qq.com 1 year ago
parent
commit
4a5a45b4e2
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      frontend/dist/index.html
  2. +1
    -1
      frontend/dist/umi.3ab00a87.js
  3. +1
    -1
      frontend/src/app.tsx

+ 1
- 1
frontend/dist/index.html View File

@@ -6,6 +6,6 @@
</head>
<body>
<div id="root"></div>
<script src="/umi.bd903792.js"></script>
<script src="/umi.3ab00a87.js"></script>

</body></html>

frontend/dist/umi.3ab00a87.js
File diff suppressed because it is too large
View File


+ 1
- 1
frontend/src/app.tsx View File

@@ -13,7 +13,7 @@ const isDev = process.env.NODE_ENV === 'development';
const loopMenuItem = (menus: MenuDataItem[]): MenuDataItem[] => {
return menus?.map(({ icon, routes, ...item }) => ({
...item,
icon: icon && React.createElement(Icon[icon as string]),
icon: icon && React.createElement(Icon && (Icon as any)[item.icon]),
routes: routes && loopMenuItem(routes),
}));
};


Loading…
Cancel
Save