1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-06 07:21:24 +08:00

Added login expiration reminder. Add logout reminder.

This commit is contained in:
2023-05-08 09:37:13 +08:00
parent 219f8cca3d
commit 881be1b0f9
15 changed files with 138 additions and 70 deletions

View File

@@ -77,6 +77,10 @@ function removeToken(): void {
removeLocalStorage(TOKEN_NAME)
}
function clearLocalStorage(): void {
localStorage.clear()
}
function randomInt(start: number, end: number): number {
if (start > end) {
const t = start
@@ -149,5 +153,6 @@ export {
removeCookie,
removeLocalStorage,
removeToken,
clearLocalStorage,
getCaptcha
}