️ 一些优化

This commit is contained in:
目棃
2024-03-21 14:04:52 +08:00
parent d9cb95e225
commit 8707a8288e
2 changed files with 38 additions and 21 deletions

View File

@@ -351,9 +351,12 @@ async function confirmDelCache(): Promise<void> {
await TGLogger.Info("[Config][confirmDelCache] 取消清除缓存");
return;
}
loadingTitle.value = "正在清除缓存...";
loading.value = true;
for (const dir of CacheDir) {
await fs.removeDir(dir, { recursive: true });
}
loading.value = false;
showSnackbar({
text: "缓存已清除!即将退出应用!",
});