add lock application menu

This commit is contained in:
MaysWind
2023-07-09 13:13:35 +08:00
parent f90430e544
commit b555af0df7
5 changed files with 36 additions and 7 deletions
+6
View File
@@ -164,6 +164,11 @@ function clearUserInfo() {
localStorage.removeItem(userInfoLocalStorageKey);
}
function clearSessionToken() {
sessionStorage.removeItem(tokenSessionStorageKey);
sessionStorage.removeItem(appLockStateSessionStorageKey);
}
function clearTokenAndUserInfo(clearAppLockState) {
if (clearAppLockState) {
sessionStorage.removeItem(appLockStateSessionStorageKey);
@@ -191,5 +196,6 @@ export default {
updateToken,
updateUserInfo,
clearUserInfo,
clearSessionToken,
clearTokenAndUserInfo
};