@@ -44,10 +58,12 @@ const ToolsFramework: React.FC = () => {
}
>
-
+ {toolsJsonObjects[0].icon ? (
+
+ ) : undefined}
{toolsJsonObjects[0].name}
@@ -62,10 +78,12 @@ const ToolsFramework: React.FC = () => {
}
>
-
+ {toolsJsonObjects[1].icon ? (
+
+ ) : undefined}
{toolsJsonObjects[1].name}
@@ -78,8 +96,8 @@ const ToolsFramework: React.FC = () => {
{toolsJsonObjects.map((tool) => {
diff --git a/src/router/tools.tsx b/src/router/tools.tsx
index b6c658b..a98995c 100644
--- a/src/router/tools.tsx
+++ b/src/router/tools.tsx
@@ -7,6 +7,7 @@ export const toolsJsonObjects: ToolsJsonObject[] = [
path: '',
id: 'tools',
component: React.lazy(() => import('@/pages/tools')),
+ icon: React.lazy(() => import('~icons/fatweb/logo.jsx')),
name: '主页',
menu: true,
auth: false