mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-04-23 22:09:51 +08:00
🎨 颂愿采用同样处理
close#222,#230
This commit is contained in:
@@ -315,14 +315,17 @@ async function deleteGacha(): Promise<void> {
|
||||
}
|
||||
}
|
||||
await showLoading.start("正在删除祈愿数据", `UID:${uidCur.value}`);
|
||||
const label = `已成功删除 ${uidCur.value} 的颂愿数据,即将刷新页面`;
|
||||
await TSUserGachaB.deleteRecords(uidCur.value);
|
||||
await TGLogger.Info(
|
||||
`[UserGachaB][${uidCur.value}][deleteGacha] 成功删除 ${gachaListCur.value.length} 条祈愿数据`,
|
||||
);
|
||||
showSnackbar.success(`已成功删除 ${uidCur.value} 的祈愿数据,即将刷新页面`);
|
||||
await reloadUid();
|
||||
await loadGachaBList();
|
||||
await showLoading.end();
|
||||
showSnackbar.success(label);
|
||||
await new Promise<void>((resolve) => setTimeout(resolve, 1500));
|
||||
window.location.reload();
|
||||
}
|
||||
|
||||
async function importUigf(): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user