Skip to content

Commit

Permalink
✅ 先写计划,要赶飞机了(
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Jul 14, 2024
1 parent 008b0f4 commit 34a4aa4
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion src/pages/User/Gacha.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<v-btn prepend-icon="mdi-import" class="gacha-top-btn" @click="handleImportBtn(true)"
>导入(v4)
</v-btn>
<v-btn prepend-icon="mdi-export" class="gacha-top-btn" @click="exportUigf()">导出 </v-btn>
<v-btn prepend-icon="mdi-export" class="gacha-top-btn" @click="exportUigf()">导出</v-btn>
<v-btn prepend-icon="mdi-export" class="gacha-top-btn" @click="exportUigf4()"
>导出(v4)
</v-btn>
Expand Down Expand Up @@ -301,6 +301,17 @@ async function handleImportBtn(isV4: boolean): Promise<void> {
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);
Expand Down Expand Up @@ -429,6 +440,17 @@ async function exportUigf(): Promise<void> {
// 导出 UIGF v4 版本的祈愿数据
async function exportUigf4(): Promise<void> {
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 的祈愿数据?",
Expand Down

0 comments on commit 34a4aa4

Please sign in to comment.