缓存代码优化
This commit is contained in:
@@ -42,8 +42,8 @@ class CACHE {
|
||||
if (v.slice(0, 1) !== '_') {
|
||||
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) !== '_') {
|
||||
this[v] = null
|
||||
}
|
||||
uni.removeStorageSync(v)
|
||||
})
|
||||
uni.removeStorageSync(this._name)
|
||||
}
|
||||
}
|
||||
export const $cache_config = new CACHE_config({
|
||||
|
||||
Reference in New Issue
Block a user