ludu-cloud/admin-web/src/utils/Authorized.js
2019-02-27 11:06:55 +08:00

13 lines
349 B
JavaScript

import RenderAuthorized from '@/components/Authorized';
import { getAuthority } from './authority';
let Authorized = RenderAuthorized(getAuthority()); // eslint-disable-line
// Reload the rights component
const reloadAuthorized = () => {
Authorized = RenderAuthorized(getAuthority());
};
export { reloadAuthorized };
export default Authorized;