|
|
|
@ -26,6 +26,7 @@ const sessionCache = {
|
|
|
|
if (value != null) {
|
|
|
|
if (value != null) {
|
|
|
|
return JSON.parse(value);
|
|
|
|
return JSON.parse(value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return null;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
remove(key: string) {
|
|
|
|
remove(key: string) {
|
|
|
|
sessionStorage.removeItem(key);
|
|
|
|
sessionStorage.removeItem(key);
|
|
|
|
@ -59,6 +60,7 @@ const localCache = {
|
|
|
|
if (value != null) {
|
|
|
|
if (value != null) {
|
|
|
|
return JSON.parse(value);
|
|
|
|
return JSON.parse(value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return null;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
remove(key: string) {
|
|
|
|
remove(key: string) {
|
|
|
|
localStorage.removeItem(key);
|
|
|
|
localStorage.removeItem(key);
|
|
|
|
|