gaoluyang
2025-05-13 7bccb4b2b3078d2f2463b25e70a9639b39f2db94
src/plugins/cache.js
@@ -26,9 +26,10 @@
    if (value != null) {
      return JSON.parse(value)
    }
    return null
  },
  remove (key) {
    sessionStorage.removeItem(key);
    sessionStorage.removeItem(key)
  }
}
const localCache = {
@@ -59,9 +60,10 @@
    if (value != null) {
      return JSON.parse(value)
    }
    return null
  },
  remove (key) {
    localStorage.removeItem(key);
    localStorage.removeItem(key)
  }
}