Jelajahi Sumber

refactor: v4 升级 v5

lanjianrong 5 tahun lalu
induk
melakukan
ffc7a8e433

+ 20 - 0
config/routes.js

@@ -38,28 +38,48 @@ export default [
     routes: [
       {
         path: '/customer',
+<<<<<<< HEAD
         redirect: '/customer/company'
+=======
+        redirect: '/customer/Company'
+        // authority: ['admin', 'company_access']
+>>>>>>> 3be301e... refactor:  v4 升级 v5
       },
       {
         path: '/customer/company',
         name: 'company',
         icon: 'icon-building',
+<<<<<<< HEAD
         component: './Customer/Company',
         access: 'authRouteFilter'
+=======
+        component: './Customer/Company'
+        // authority: ['admin', 'company_access']
+>>>>>>> 3be301e... refactor:  v4 升级 v5
       },
       {
         path: '/customer/client',
         name: 'client',
         icon: 'icon-address-book',
+<<<<<<< HEAD
         component: './Customer/Client',
         access: 'authRouteFilter'
+=======
+        component: './Customer/Client'
+        // authority: ['admin', 'client_access']
+>>>>>>> 3be301e... refactor:  v4 升级 v5
       },
       {
         path: '/customer/business',
         name: 'business',
         icon: 'icon-usd-circle',
+<<<<<<< HEAD
         component: './Customer/Business',
         access: 'authRouteFilter'
+=======
+        component: './Customer/Business'
+        // authority: ['admin', 'business_access']
+>>>>>>> 3be301e... refactor:  v4 升级 v5
       },
       {
         path: '/customer/test',

+ 1 - 0
src/pages/Customer/Business/index.jsx

@@ -12,6 +12,7 @@ import CompanyDetail from '../Company/components/CompanyDetail'
 import { Funnel } from '@ant-design/charts'
 
 const Business = ({ dispatch, groupList, shouldUpdate, loading }) => {
+  const { initialState: { permData } = { permData: {} } } = useModel('@@initialState')
   const tRef = useRef(null)
   const { toggleDrawer, setDrawerProps } = useModal()
   const [state, setState] = useState({

+ 0 - 1
src/pages/Customer/Client/index.jsx

@@ -32,7 +32,6 @@ const Client = props => {
     shouldUpdate,
     loading
   } = props
-
   const { initialState: { permData } = { permData: {} } } = useModel('@@initialState')
   const tRef = useRef()
   const [tagState, setTagState] = useState({