mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
✅ 先写计划,要赶飞机了(
This commit is contained in:
@@ -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);
|
||||
@@ -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 的祈愿数据?",
|
||||
|
||||
Reference in New Issue
Block a user