初始化 antd-pro
This commit is contained in:
12
admin-web/src/utils/Authorized.js
Normal file
12
admin-web/src/utils/Authorized.js
Normal file
@@ -0,0 +1,12 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user