🐛 修复帖子loading异常

This commit is contained in:
目棃
2024-11-15 18:02:15 +08:00
parent 0c24b95fff
commit 6974ada1c0

View File

@@ -193,7 +193,6 @@ onMounted(async () => {
showLoading.update(`正在获取 ${gameLabel}-${forumLabel} 数据`);
await freshPostData();
curForumLabel.value = forumLabel;
showLoading.end();
});
watch(
@@ -233,7 +232,7 @@ async function freshPostData(): Promise<void> {
await TGLogger.Info(
`[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);
posts.value = postsGet.list;
showLoading.end();