mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-17 10:08:14 +08:00
🐛 修复帖子loading异常
This commit is contained in:
@@ -193,7 +193,6 @@ onMounted(async () => {
|
|||||||
showLoading.update(`正在获取 ${gameLabel}-${forumLabel} 数据`);
|
showLoading.update(`正在获取 ${gameLabel}-${forumLabel} 数据`);
|
||||||
await freshPostData();
|
await freshPostData();
|
||||||
curForumLabel.value = forumLabel;
|
curForumLabel.value = forumLabel;
|
||||||
showLoading.end();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
@@ -233,7 +232,7 @@ async function freshPostData(): Promise<void> {
|
|||||||
await TGLogger.Info(
|
await TGLogger.Info(
|
||||||
`[Posts][${gameLabel}][freshPostData][${forumLabel}][${sortLabel}] 刷新帖子列表`,
|
`[Posts][${gameLabel}][freshPostData][${forumLabel}][${sortLabel}] 刷新帖子列表`,
|
||||||
);
|
);
|
||||||
showLoading.start(`正在加载 ${gameLabel}-${forumLabel}-${sortLabel} 数据`);
|
showLoading.update(`正在加载 ${gameLabel}-${forumLabel}-${sortLabel} 数据`);
|
||||||
const postsGet = await Mys.Post.getForumPostList(curForum.value, curSortType.value);
|
const postsGet = await Mys.Post.getForumPostList(curForum.value, curSortType.value);
|
||||||
posts.value = postsGet.list;
|
posts.value = postsGet.list;
|
||||||
showLoading.end();
|
showLoading.end();
|
||||||
|
|||||||
Reference in New Issue
Block a user