Przeglądaj źródła

fix: 图标修复

outaozhen 5 lat temu
rodzic
commit
d1ca6cc51c
3 zmienionych plików z 12 dodań i 12 usunięć
  1. 7 7
      config/routes.js
  2. 3 3
      src/layouts/BasicLayout.jsx
  3. 2 2
      src/pages/document.ejs

+ 7 - 7
config/routes.js

@@ -30,7 +30,7 @@ export default [
               {
                 path: '/workbench',
                 name: 'workbench',
-                icon: 'table-lamp-229fgk5i',
+                icon: 'icon-chess',
                 routes: [
                   {
                     path: '/workbench',
@@ -39,7 +39,7 @@ export default [
                   {
                     path: '/workbench/dashboard',
                     name: 'dashboard',
-                    icon: 'slide',
+                    icon: 'icon-tachometer-alt',
                     component: './workbench/Dashboard'
                   }
                 ]
@@ -47,7 +47,7 @@ export default [
               {
                 path: '/customer',
                 name: 'customer',
-                icon: 'address-book',
+                icon: 'icon-address-book-o',
                 routes: [
                   {
                     path: '/customer',
@@ -57,27 +57,27 @@ export default [
                   {
                     path: '/customer/contact',
                     name: 'contact',
-                    icon: 'user-business',
+                    icon: 'icon-address-book',
                     component: './customer/Contact',
                     authority: ['admin', 'client_access']
                   },
                   {
                     path: '/customer/company',
                     name: 'company',
-                    icon: 'city',
+                    icon: 'icon-building',
                     component: './customer/Company',
                     authority: ['admin', 'company_access']
                   },
                   {
                     path: '/customer/business',
                     name: 'business',
-                    icon: 'finance',
+                    icon: 'icon-usd-circle',
                     component: './customer/Business'
                   },
                   {
                     path: '/customer/test',
                     name: 'test',
-                    icon: 'finance',
+                    icon: 'icon-usd-circle',
                     component: './customer/Test'
                   }
                 ]

+ 3 - 3
src/layouts/BasicLayout.jsx

@@ -26,9 +26,9 @@ const menuDataRender = menuList =>
       ...item,
       children: item.children ? menuDataRender(item.children) : undefined
     }
-    if (item.icon) {
-      localItem.icon = <iconpark-icon name={item.icon} size="16" class="anticon anticon-form" />
-    }
+    // if (item.icon) {
+    //   localItem.icon = <iconpark-icon name={item.icon} size="16" class="anticon anticon-form" />
+    // }
     return Authorized.check(item.authority, localItem, null)
   })
 

+ 2 - 2
src/pages/document.ejs

@@ -22,10 +22,10 @@
     <link rel="icon" href="<%= context.config.publicPath +'favicon.ico'%>" type="image/x-icon" />
   </head>
   <body>
-    <script
+    <!-- <script
       defer
       src="https://lf1-cdn-tos.bytegoofy.com/obj/iconpark/icons_1832_49.5a251ec91e1c2f50fa8fe47441080413.js"
-    ></script>
+    ></script> -->
     <noscript>Out-of-the-box mid-stage front/design solution!</noscript>
     <div id="root">
       <style>