mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-05-07 00:15:48 +08:00
🏷️ add await
This commit is contained in:
@@ -272,7 +272,7 @@ async function getCurrentPosts(
|
||||
|
||||
async function freshPostData(): Promise<void> {
|
||||
if (!selectedForum.value) return;
|
||||
router.push({
|
||||
await router.push({
|
||||
name: "酒馆",
|
||||
params: route.params,
|
||||
query: { gid: curGid.value, forum: selectedForum.value.value },
|
||||
|
||||
@@ -123,7 +123,7 @@ async function firstLoad(key: NewsType, refresh: boolean = false): Promise<void>
|
||||
|
||||
async function switchAnno(): Promise<void> {
|
||||
await TGLogger.Info(`[News][${gid}][switchAnno] 切换公告`);
|
||||
router.push("/announcements");
|
||||
await router.push("/announcements");
|
||||
}
|
||||
|
||||
// 加载更多
|
||||
|
||||
Reference in New Issue
Block a user