From 34a4aa4449d21d8d2ea1f17778add9c45a12b145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Sun, 14 Jul 2024 08:47:27 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20=E5=85=88=E5=86=99=E8=AE=A1?= =?UTF-8?q?=E5=88=92=EF=BC=8C=E8=A6=81=E8=B5=B6=E9=A3=9E=E6=9C=BA=E4=BA=86?= =?UTF-8?q?=EF=BC=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/User/Gacha.vue | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/pages/User/Gacha.vue b/src/pages/User/Gacha.vue index ab25580b..6d077b09 100644 --- a/src/pages/User/Gacha.vue +++ b/src/pages/User/Gacha.vue @@ -16,7 +16,7 @@ 导入(v4) - 导出 + 导出 导出(v4) @@ -301,6 +301,17 @@ async function handleImportBtn(isV4: boolean): Promise { const check = await verifyUigfData(selectedFile.path, isV4); if (!check) return; if (isV4) { + const checkConfirm = await showConfirm({ + title: "确定导入 UIGF v4 格式的祈愿数据?", + text: "该标准尚在制定完善当中,可能会有不兼容的情况", + }); + if (!checkConfirm) { + showSnackbar({ + color: "cancel", + text: "已取消 UIGF v4 格式导入", + }); + return; + } await importUigf4(selectedFile.path); } else { await importUigf(selectedFile.path); @@ -429,6 +440,17 @@ async function exportUigf(): Promise { // 导出 UIGF v4 版本的祈愿数据 async function exportUigf4(): Promise { + const checkConfirm = await showConfirm({ + title: "确定采用 UIGF v4 格式导出祈愿数据?", + text: "该标准尚在制定完善当中,可能会有不兼容的情况", + }); + if (!checkConfirm) { + showSnackbar({ + color: "cancel", + text: "已取消 UIGF v4 格式导出", + }); + return; + } await TGLogger.Info(`[UserGacha][${uidCur.value}][exportUigf4] 导出祈愿数据(v4)`); const allConfirm = await showConfirm({ title: "是否导出所有 UID 的祈愿数据?",