缓存清除全部方法优化
This commit is contained in:
parent
d12f35e078
commit
f237774e0e
|
|
@ -113,13 +113,9 @@ const $cache={
|
|||
config:$cache_config
|
||||
}
|
||||
export function cacheClearAll() {
|
||||
console.log($cache_index);
|
||||
$cache_index.clear()
|
||||
$cache_video.clear()
|
||||
$cache_renwu.clear()
|
||||
$cache_chasingDrama.clear()
|
||||
$cache_user.clear()
|
||||
$cache_config.clear()
|
||||
for(let i in $cache){
|
||||
$cache[i].clear()
|
||||
}
|
||||
}
|
||||
export function cacheClear(arr){
|
||||
if(typeof arr==='string'&&$cache[arr]){
|
||||
|
|
|
|||
Loading…
Reference in New Issue