Commit 6663cb85 authored by Magton's avatar Magton Committed by 陈帅

Spell mistake in Authorized util. (#4170)

This is causing a redirect issue after login attempts.
'RenderAuthorized' should be 'RenderAuthorize'
parent c38761cf
import RenderAuthorized from '@/components/Authorized'; import RenderAuthorize from '@/components/Authorized';
import { getAuthority } from './authority'; import { getAuthority } from './authority';
let Authorized = RenderAuthorized(getAuthority()); // eslint-disable-line let Authorized = RenderAuthorize(getAuthority()); // eslint-disable-line
// Reload the rights component // Reload the rights component
const reloadAuthorized = () => { const reloadAuthorized = () => {
Authorized = RenderAuthorized(getAuthority()); Authorized = RenderAuthorize(getAuthority());
}; };
export { reloadAuthorized }; export { reloadAuthorized };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment