// use localStorage to store the authority info, which might be sent from server in actual project.exportfunctiongetAuthority(){returnlocalStorage.getItem('antd-pro-authority')||'guest';}exportfunctionsetAuthority(authority){returnlocalStorage.setItem('antd-pro-authority',authority);}