Finish register in Sign

This commit is contained in:
2023-12-24 23:44:51 +08:00
parent bbc669ba3e
commit 27a41944c6
6 changed files with 278 additions and 52 deletions

View File

@@ -68,6 +68,14 @@ export const getLoginStatus = () => {
return getLocalStorage(STORAGE_TOKEN_KEY) !== null
}
export const getVerifyStatus_async = () => {
if (getLocalStorage(STORAGE_USER_INFO_KEY) === null) {
return undefined
}
return (JSON.parse(getLocalStorage(STORAGE_USER_INFO_KEY) as string) as UserWithPowerInfoVo)
.verified
}
export const getUserInfo = async (): Promise<UserWithPowerInfoVo> => {
if (getLocalStorage(STORAGE_USER_INFO_KEY) !== null) {
return new Promise((resolve) => {