import RenderAuthorize from '@/components/Authorized' ; import { getAuthority } from './authority' ; let Authorized = RenderAuthorize ( getAuthority ( ) ) ; const reloadAuthorized = ( ) : void => { Authorized = RenderAuthorize ( getAuthority ( ) ) ; } ; /** Hard code block need it。 */ window . reloadAuthorized = reloadAuthorized ; export { reloadAuthorized } ; export default Authorized ;