Authorized.js 349 Bytes
Newer Older
1
import RenderAuthorized from '@/components/Authorized';
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;