缓存代码优化

This commit is contained in:
2024-12-31 16:37:09 +08:00
parent 3698ff6379
commit 09c465c74e

View File

@@ -42,8 +42,8 @@ class CACHE {
if (v.slice(0, 1) !== '_') { if (v.slice(0, 1) !== '_') {
this[v] = null this[v] = null
} }
uni.removeStorageSync(this._name)
}) })
uni.removeStorageSync(this._name)
} }
} }
@@ -95,8 +95,8 @@ class CACHE_config extends CACHE {
if (v.slice(0, 1) !== '_') { if (v.slice(0, 1) !== '_') {
this[v] = null this[v] = null
} }
uni.removeStorageSync(v)
}) })
uni.removeStorageSync(this._name)
} }
} }
export const $cache_config = new CACHE_config({ export const $cache_config = new CACHE_config({