mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-18 10:18:14 +08:00
✏️ add missing await
This commit is contained in:
@@ -126,7 +126,14 @@ async function toOuter(item?: TGApp.App.Character.WikiBriefInfo): Promise<void>
|
||||
return;
|
||||
}
|
||||
const url = Mys.Api.Obc.replace("{contentId}", item.contentId.toString());
|
||||
createTGWindow(url, "Sub_window", `Content_${item.contentId} ${item.name}`, 1200, 800, true);
|
||||
await createTGWindow(
|
||||
url,
|
||||
"Sub_window",
|
||||
`Content_${item.contentId} ${item.name}`,
|
||||
1200,
|
||||
800,
|
||||
true,
|
||||
);
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
|
||||
@@ -117,7 +117,14 @@ async function toOuter(item?: TGApp.App.Weapon.WikiBriefInfo): Promise<void> {
|
||||
return;
|
||||
}
|
||||
const url = Mys.Api.Obc.replace("{contentId}", item.contentId.toString());
|
||||
createTGWindow(url, "Sub_window", `Content_${item.contentId} ${item.name}`, 1200, 800, true);
|
||||
await createTGWindow(
|
||||
url,
|
||||
"Sub_window",
|
||||
`Content_${item.contentId} ${item.name}`,
|
||||
1200,
|
||||
800,
|
||||
true,
|
||||
);
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
|
||||
@@ -239,12 +239,11 @@ async function switchNews(): Promise<void> {
|
||||
await router.push("/news/2");
|
||||
}
|
||||
|
||||
function createAnno(item: TGApp.App.Announcement.ListCard): void {
|
||||
async function createAnno(item: TGApp.App.Announcement.ListCard): Promise<void> {
|
||||
const annoPath = `/anno_detail/${curRegion.value}/${item.id}/${curLang.value}`;
|
||||
const annoTitle = `Anno_${item.id} ${item.title}`;
|
||||
TGLogger.Info(`[Announcements][createAnno][${item.id}] 打开公告窗口`).then(() =>
|
||||
createTGWindow(annoPath, "Sub_window", annoTitle, 960, 720, false, false),
|
||||
);
|
||||
await TGLogger.Info(`[Announcements][createAnno][${item.id}] 打开公告窗口`);
|
||||
await createTGWindow(annoPath, "Sub_window", annoTitle, 960, 720, false, false);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user