feat: add execute-script route and handler for executing SQL scripts

This commit is contained in:
t8y2
2026-05-05 03:22:26 +08:00
parent 41bceffc0e
commit 794c5375c7
3 changed files with 20 additions and 1 deletions
+2 -1
View File
@@ -942,7 +942,7 @@ const downloadProgress = ref(0);
const updateReady = ref(false);
async function downloadAndInstallUpdate() {
if (isDownloadingUpdate.value) return;
if (!isTauriRuntime() || isDownloadingUpdate.value) return;
isDownloadingUpdate.value = true;
downloadProgress.value = 0;
try {
@@ -970,6 +970,7 @@ async function downloadAndInstallUpdate() {
}
async function restartApp() {
if (!isTauriRuntime()) return;
const { relaunch } = await import("@tauri-apps/plugin-process");
await relaunch();
}