diff --git a/src/plugins/cache/index.js b/src/plugins/cache/index.js index 2284ddc..44d3173 100644 --- a/src/plugins/cache/index.js +++ b/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 }