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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user