import React from 'react'; import RenderAuthorized from 'ant-design-pro/lib/Authorized'; import { getAuthority } from '@/utils/authority'; import Redirect from 'umi/redirect'; const Authority = getAuthority(); const Authorized = RenderAuthorized(Authority); export default ({ children }) => ( }> {children} );