✏️ 完善 showConfirm 类型

This commit is contained in:
BTMuli
2023-10-13 22:45:45 +08:00
parent c8c157852f
commit 980b420eb1
5 changed files with 71 additions and 22 deletions

View File

@@ -370,7 +370,7 @@ async function deleteGacha(): Promise<void> {
text: `UID${uidCur.value},共 ${gachaListCur.value.length} 条数据`,
});
}
if (secondConfirm === false) {
if (!secondConfirm) {
showSnackbar({
color: "grey",
text: "已取消祈愿数据删除",

View File

@@ -353,7 +353,7 @@ async function handleImportOuter(app: string): Promise<void> {
title: "是否导入祈愿数据?",
text: `来源APP${app}`,
});
if (confirm === true) {
if (confirm) {
// 读取 剪贴板
const clipboard = await window.navigator.clipboard.readText();
let data: TGApp.Plugins.UIAF.Achievement[];