Parcourir la source

feat: 获取数据权限在layout pagechange时触发

lanjianrong il y a 5 ans
Parent
commit
3bc11670b0

+ 0 - 20
config/routes.js

@@ -38,48 +38,28 @@ 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',

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

@@ -12,7 +12,6 @@ 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({

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

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