Browse Source

Spell mistake in Authorized util. (#4170)

This is causing a redirect issue after login attempts.
'RenderAuthorized' should be 'RenderAuthorize'
pull/4187/head
Magton 7 years ago
committed by 陈帅
parent
commit
6663cb8529
  1. 6
      src/utils/Authorized.js

6
src/utils/Authorized.js

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

Loading…
Cancel
Save