From a2adf2ce20d690d333c994fca55748e856d38602 Mon Sep 17 00:00:00 2001 From: qsh <> Date: Fri, 9 Aug 2024 18:27:18 +0800 Subject: [PATCH] sc --- src/plugins/cache/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }