diff --git a/frontend/src/MvpPanel.vue b/frontend/src/MvpPanel.vue index aa0d2f6..10c4ae3 100644 --- a/frontend/src/MvpPanel.vue +++ b/frontend/src/MvpPanel.vue @@ -643,6 +643,9 @@ async function exportData() { catch (reason) { backupError.value = reason instanceof Error ? reason.message : '完整备份导出失败' } finally { backupBusy.value = false } } +function openRestoreFilePicker() { + if (!backupBusy.value) restoreInput.value?.click() +} function selectRestoreFile(event: Event) { cancelPreflight() restoreFile.value = (event.target as HTMLInputElement).files?.[0] ?? null @@ -841,7 +844,7 @@ onBeforeUnmount(() => {