20 lines
518 B
TypeScript
20 lines
518 B
TypeScript
![]() |
import RenderAuthorize from '@/components/Authorized';
|
||
|
import { getAuthority } from './authority';
|
||
|
/* eslint-disable eslint-comments/disable-enable-pair */
|
||
|
/* eslint-disable import/no-mutable-exports */
|
||
|
let Authorized = RenderAuthorize(getAuthority());
|
||
|
|
||
|
// Reload the rights component
|
||
|
const reloadAuthorized = (): void => {
|
||
|
Authorized = RenderAuthorize(getAuthority());
|
||
|
};
|
||
|
|
||
|
/**
|
||
|
* hard code
|
||
|
* block need it。
|
||
|
*/
|
||
|
window.reloadAuthorized = reloadAuthorized;
|
||
|
|
||
|
export { reloadAuthorized };
|
||
|
export default Authorized;
|