From 2807ce48a6de152f2eaac842a8e3b95c82e485fb Mon Sep 17 00:00:00 2001 From: BTMuli Date: Sun, 22 Mar 2026 00:40:41 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20=E7=BB=9F=E4=B8=80UIGF=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E4=BA=A4=E4=BA=92=EF=BC=8C=E5=AF=BC=E5=87=BA=E5=89=8D?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=AF=BC=E5=87=BA=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/userGacha/ugo-uid.vue | 8 +++++--- src/pages/User/Gacha.vue | 14 +++++++++++++- src/pages/User/GachaB.vue | 16 ++++++++++++++-- 3 files changed, 32 insertions(+), 6 deletions(-) diff --git a/src/components/userGacha/ugo-uid.vue b/src/components/userGacha/ugo-uid.vue index 77f61977..8f96ae0c 100644 --- a/src/components/userGacha/ugo-uid.vue +++ b/src/components/userGacha/ugo-uid.vue @@ -70,8 +70,10 @@ import { computed, onMounted, ref, shallowRef, watch } from "vue"; type UgoUidProps = { /** 导入/导出 */ mode: "import" | "export"; - /** filePathImport,导出路径 */ + /** filePathImport,导入路径 */ fpi?: string; + /** filePathExport,导出路径 */ + fpe?: string; }; /** * UID项 @@ -107,7 +109,7 @@ onMounted(async () => { }); watch( - () => [visible.value, props.mode, props.fpi], + () => [visible.value, props.mode, props.fpi, props.fpe], async () => { if (visible.value) await refreshData(); }, @@ -127,7 +129,7 @@ async function refreshData(): Promise { fp.value = props.fpi ?? fpEmptyText; await refreshImport(); } else { - fp.value = await getDefaultSavePath(); + fp.value = props.fpe ?? (await getDefaultSavePath()); await refreshExport(); } } diff --git a/src/pages/User/Gacha.vue b/src/pages/User/Gacha.vue index 8b40ec5e..585845c7 100644 --- a/src/pages/User/Gacha.vue +++ b/src/pages/User/Gacha.vue @@ -140,7 +140,7 @@ - +