qsh 4 months ago
parent e59ba74c12
commit aa5382f199
  1. 4
      src/plugins/cache/index.js

@ -73,6 +73,10 @@ const localCache = {
let storage = storageStr ? JSON.parse(storageStr) : {}
delete storage[key]
localStorage.setItem(name, JSON.stringify(storage))
},
clear() {
let storage = {}
localStorage.setItem(name, JSON.stringify(storage))
}
}

Loading…
Cancel
Save