mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-11 09:08:14 +08:00
🚸 成就导入不允许点击外部取消,调整刷新逻辑
This commit is contained in:
@@ -189,7 +189,7 @@ async function exportJson(): Promise<void> {
|
||||
|
||||
async function handleImportOuter(app: string): Promise<void> {
|
||||
await TGLogger.Info(`[Achievements][handleImportOuter] 导入来源:${app}`);
|
||||
const importCheck = await showDialog.check("是否导入祈愿数据?", `来源APP:${app}`);
|
||||
const importCheck = await showDialog.check("是否导入祈愿数据?", `来源APP:${app}`, false);
|
||||
if (!importCheck) {
|
||||
showSnackbar.cancel("已取消导入");
|
||||
return;
|
||||
@@ -221,6 +221,7 @@ async function handleImportOuter(app: string): Promise<void> {
|
||||
await TGLogger.Info("[Achievements][handleImportOuter] 导入成功");
|
||||
await new Promise<void>((resolve) => setTimeout(resolve, 1500));
|
||||
await router.push("/achievements");
|
||||
window.location.reload();
|
||||
}
|
||||
|
||||
async function createUid(): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user