outaozhen před 5 roky
rodič
revize
32d4d6ca63
2 změnil soubory, kde provedl 16 přidání a 17 odebrání
  1. 15 15
      config/routes.js
  2. 1 2
      src/pages/Product/Lock/Lockstore/index.jsx

+ 15 - 15
config/routes.js

@@ -25,7 +25,7 @@ export default [
             routes: [
               {
                 path: '/',
-                redirect: '/customer/contact'
+                redirect: '/Customer/Contact'
               },
               {
                 path: '/workbench',
@@ -34,13 +34,13 @@ export default [
                 routes: [
                   {
                     path: '/workbench',
-                    redirect: '/workbench/dashboard'
+                    redirect: '/Workbench/Dashboard'
                   },
                   {
                     path: '/workbench/dashboard',
                     name: 'dashboard',
                     icon: 'icon-tachometer-alt',
-                    component: './workbench/Dashboard'
+                    component: './Workbench/Dashboard'
                   }
                 ]
               },
@@ -51,34 +51,34 @@ export default [
                 routes: [
                   {
                     path: '/customer',
-                    redirect: '/customer/contact',
+                    redirect: '/Customer/Contact',
                     authority: ['admin', 'client_access']
                   },
                   {
                     path: '/customer/contact',
                     name: 'contact',
                     icon: 'icon-address-book',
-                    component: './customer/Contact',
+                    component: './Customer/Contact',
                     authority: ['admin', 'client_access']
                   },
                   {
                     path: '/customer/company',
                     name: 'company',
                     icon: 'icon-building',
-                    component: './customer/Company',
+                    component: './Customer/Company',
                     authority: ['admin', 'company_access']
                   },
                   {
                     path: '/customer/business',
                     name: 'business',
                     icon: 'icon-usd-circle',
-                    component: './customer/Business'
+                    component: './Customer/Business'
                   },
                   {
                     path: '/customer/test',
                     name: 'test',
                     icon: 'icon-usd-circle',
-                    component: './customer/Test'
+                    component: './Customer/Test'
                   }
                 ]
               },
@@ -89,7 +89,7 @@ export default [
                 routes: [
                   {
                     path: '/product',
-                    redirect: '/product/lock'
+                    redirect: '/Product/Lock'
                   },
                   {
                     path: '/product/lock',
@@ -98,17 +98,17 @@ export default [
                     routes: [
                       {
                         path: '/product/lock',
-                        redirect: '/product/lock/lockstore'
+                        redirect: '/Product/Lock/Lockstore'
                       },
                       {
                         path: '/product/lock/lockstore',
                         name: 'lockstore',
-                        component: './product/lock/Lockstore'
+                        component: './Product/Lock/Lockstore'
                       },
                       {
                         path: '/product/lock/lockcount',
                         name: 'lockcount',
-                        component: './product/lock/Lockcount'
+                        component: './Product/Lock/Lockcount'
                       }
                     ]
                   },
@@ -119,17 +119,17 @@ export default [
                     routes: [
                       {
                         path: '/product/cloud',
-                        redirect: '/product/cloud/building'
+                        redirect: '/Product/Cloud/Building'
                       },
                       {
                         path: '/product/cloud/building',
                         name: 'build',
-                        component: './product/cloud/Building'
+                        component: './Product/Cloud/Building'
                       },
                       {
                         path: '/product/cloud/curing',
                         name: 'curing',
-                        component: './product/cloud/Curing'
+                        component: './Product/Cloud/Curing'
                       }
                     ]
                   }

+ 1 - 2
src/pages/Product/Lock/Lockstore/index.jsx

@@ -1,10 +1,9 @@
-import React, { useState, useEffect } from 'react'
+import React, { useState } from 'react'
 import { Tag } from 'antd'
 import ProTable from '@ant-design/pro-table'
 import consts from '@/consts'
 import { queryLock } from '@/services/lock'
 import LocksDetail from '@/pages/Product/lock/Lockstore/components/LocksDetail'
-import { useDebounceFn } from 'ahooks'
 import { useModal } from '@/components/Modal'
 import { useTableScroll } from '@/hooks/useAutoTable'