qsh 2 months ago
parent e5418f4019
commit a2adf2ce20
  1. 4
      src/plugins/cache/index.js

@ -26,7 +26,7 @@ const sessionCache = {
let storage = storageStr ? JSON.parse(storageStr) : {}
return storage[key]
},
remove(key) {
delete(key) {
if (!sessionStorage) {
return null
}
@ -62,7 +62,7 @@ const localCache = {
let storage = storageStr ? JSON.parse(storageStr) : {}
return storage[key]
},
remove(key) {
delete(key) {
if (!localStorage) {
return null
}

Loading…
Cancel
Save