From 5421488dfc8eda4e38713d44cf571d2750eb626f Mon Sep 17 00:00:00 2001 From: huishan <10257116+ccoder64@users.noreply.github.com> Date: Mon, 21 Oct 2019 10:35:12 +0800 Subject: [PATCH] bugfix: auto reload Authorized (#5448) ref #5416 --- src/utils/authority.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/authority.ts b/src/utils/authority.ts index ffa91788..fbb50193 100644 --- a/src/utils/authority.ts +++ b/src/utils/authority.ts @@ -27,7 +27,7 @@ export function getAuthority(str?: string): string | string[] { export function setAuthority(authority: string | string[]): void { const proAuthority = typeof authority === 'string' ? [authority] : authority; + localStorage.setItem('antd-pro-authority', JSON.stringify(proAuthority)); // auto reload reloadAuthorized(); - return localStorage.setItem('antd-pro-authority', JSON.stringify(proAuthority)); }