From f0d2787eb233964d5c067aca22122c53b87eeda7 Mon Sep 17 00:00:00 2001 From: bboysoul Date: Fri, 18 Sep 2026 17:02:35 +0800 Subject: [PATCH] feat: unify cream button system --- frontend/src/MvpPanel.vue | 5 ++++- frontend/src/style.css | 26 ++++++++++++++++++++---- frontend/src/style.test.ts | 41 ++++++++++++++++++++++++++++++++++++-- 3 files changed, 65 insertions(+), 7 deletions(-) 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(() => {