Add register to sign page(temp)

This commit is contained in:
2023-12-22 17:57:32 +08:00
parent 85aba29ced
commit bbc669ba3e
11 changed files with 247 additions and 285 deletions

View File

@@ -8,7 +8,6 @@ import { floorNumber, randomColor, randomFloat, randomInt } from '@/util/common'
import { getLocalStorage, removeLocalStorage, setLocalStorage } from '@/util/browser'
import { getFullTitle } from '@/util/route'
import { r_sys_user_info } from '@/services/system'
import { r_auth_login, r_auth_logout } from '@/services/auth'
let captcha: Captcha
@@ -65,16 +64,6 @@ export const getCaptcha = (width: number, high: number, num: number) => {
}
}
export const login = async (account: string, password: string) => {
return await r_auth_login(account, password)
}
export const logout = async () => {
return r_auth_logout().finally(() => {
removeToken()
})
}
export const getLoginStatus = () => {
return getLocalStorage(STORAGE_TOKEN_KEY) !== null
}