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