修复缓存清除问题

This commit is contained in:
2025-01-09 18:18:57 +08:00
parent 13c270f4e6
commit b8c47e899d

View File

@@ -44,6 +44,7 @@ class CACHE {
Object.keys(this).map(v => {
if (v.slice(0, 1) !== '_') {
this[v] = null
delete this[v]
}
})
uni.removeStorageSync(this._name)
@@ -102,6 +103,7 @@ class CACHE_config extends CACHE {
Object.keys(this).map(v => {
if (v.slice(0, 1) !== '_') {
this[v] = null
delete this[v]
}
})
uni.removeStorageSync(this._name)