Authorized.js 358 Bytes
Newer Older
ζ„šι“'s avatar
ζ„šι“ committed
1
import { Authorized as RenderAuthorized } from 'ant-design-pro';
ddcat1115's avatar
ddcat1115 committed
2 3
import { getAuthority } from './authority';

ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
4 5 6 7 8 9 10 11
let Authorized = RenderAuthorized(getAuthority()); // eslint-disable-line

// Reload the rights component
const reloadAuthorized = () => {
  Authorized = RenderAuthorized(getAuthority());
};

export { reloadAuthorized };
ddcat1115's avatar
ddcat1115 committed
12
export default Authorized;