️ 优化,存在 bug

This commit is contained in:
目棃
2024-04-04 19:51:10 +08:00
parent 6bf24bd8c2
commit ca46b8813d
3 changed files with 47 additions and 11 deletions

View File

@@ -356,14 +356,14 @@ async function confirmDelCache(): Promise<void> {
for (const dir of CacheDir) {
await fs.removeDir(dir, { recursive: true });
}
await TGLogger.Info("[Config][confirmDelCache] 缓存清除完成");
loading.value = false;
showSnackbar({
text: "缓存已清除!即将退出应用!",
});
await TGLogger.Info("[Config][confirmDelCache] 缓存清除完成");
setTimeout(async () => {
await TauriProcess.exit();
}, 3000);
}, 1000);
}
// 恢复默认设置