Jelajahi Sumber

修改图标库和路由

outaozhen 5 tahun lalu
induk
melakukan
c8a724b908
3 mengubah file dengan 23 tambahan dan 8 penghapusan
  1. 14 7
      config/routes.js
  2. 2 1
      src/locales/zh-CN/menu.js
  3. 7 0
      src/pages/Customer/Finance/index.jsx

+ 14 - 7
config/routes.js

@@ -32,11 +32,12 @@ export default [
           {
             path: '/workbench',
             name: 'workbench',
-            // // icon: 'icon-chess',
+            icon: 'table-lamp',
             routes: [
               {
                 path: '/workbench/workbench',
                 name: 'workbench',
+                icon: 'list',
                 component: './Workbench/workbench'
               }
             ]
@@ -44,21 +45,27 @@ export default [
           {
             path: '/customer',
             name: 'customer',
-            // // icon: 'icon-address-book',
+            icon: 'address-book',
             routes: [
               {
                 path: '/customer/contact',
                 name: 'contact',
-                icon: 'address-book',
+                icon: 'user-business',
                 component: './Customer/Contact'
               },
               {
                 path: '/customer/company',
                 name: 'company',
-                icon: 'ad-product',
+                icon: 'city',
                 component: './Customer/Company'
               },
               {
+                path: '/customer/finance',
+                name: 'finance',
+                icon: 'finance',
+                component: './Customer/Finance'
+              },
+              {
                 path: '/customer/test',
                 name: 'test',
                 icon: 'alarm',
@@ -69,12 +76,12 @@ export default [
           {
             path: '/product',
             name: 'product',
-            // // icon: 'icon-box',
+            icon: 'ad-product',
             routes: [
               {
                 path: '/product/lock',
                 name: 'lock',
-                // // icon: 'icon-magic',
+                icon: 'disk-one',
                 routes: [
                   {
                     path: '/product/lock/lockstore',
@@ -91,7 +98,7 @@ export default [
               {
                 path: '/product/cloud',
                 name: 'cloud',
-                // // icon: 'icon-cloud',
+                icon: 'network-drive',
                 routes: [
                   {
                     path: '/product/cloud/building',

+ 2 - 1
src/locales/zh-CN/menu.js

@@ -5,10 +5,11 @@ export default {
   'menu.admin': '管理页',
   'menu.admin.sub-page': '二级管理页',
   'menu.workbench': '工作台',
-  'menu.workbench.workbench': '首页',
+  'menu.workbench.workbench': '代办事项',
   'menu.customer': '客户',
   'menu.customer.contact': '联系人',
   'menu.customer.company': '客户',
+  'menu.customer.finance': '商机',
   'menu.customer.test': '测试',
   'menu.product': '产品',
   'menu.product.lock': '软件锁',

+ 7 - 0
src/pages/Customer/Finance/index.jsx

@@ -0,0 +1,7 @@
+import React from 'react'
+
+const index = () => {
+  return <div>商机</div>
+}
+
+export default index