Skip to content

Commit

Permalink
Revert "🎨 清除缓存后重启"
Browse files Browse the repository at this point in the history
This reverts commit 7d9cb59.
  • Loading branch information
BTMuli committed Sep 26, 2024
1 parent 3ed8753 commit 96c58af
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/pages/common/Config.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
import { core } from "@tauri-apps/api";
import { open } from "@tauri-apps/plugin-dialog";
import { remove } from "@tauri-apps/plugin-fs";
import { exit } from "@tauri-apps/plugin-process";
import { onMounted, ref } from "vue";
import TcAppBadge from "../../components/config/tc-appBadge.vue";
Expand Down Expand Up @@ -369,10 +370,11 @@ async function confirmDelCache(): Promise<void> {
}
await TGLogger.Info("[Config][confirmDelCache] 缓存清除完成");
loading.value = false;
showSnackbar({ text: "缓存已清除!即将重启应用!" });
showSnackbar({
text: "缓存已清除!即将退出应用!",
});
setTimeout(async () => {
const { relaunch } = window.__TAURI_PLUGIN_PROCESS__;
await relaunch();
await exit();
}, 1000);
}
Expand Down

0 comments on commit 96c58af

Please sign in to comment.