(authority)
| 32 | return authority; |
| 33 | } |
| 34 | export function setAuthority (authority) { |
| 35 | const proAuthority = typeof authority === 'string' ? [authority] : authority; |
| 36 | localStorage.setItem('antd-pro-authority', JSON.stringify(proAuthority)); // auto reload |
| 37 | |
| 38 | reloadAuthorized(); |
| 39 | } |
nothing calls this directly
no test coverage detected