Skip to content

Commit

Permalink
🐛 修复版块跳转异常
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Dec 15, 2024
1 parent 07954d0 commit 67a2414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/common/PostForum.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,14 @@ const posts = shallowRef<Array<TGApp.Plugins.Mys.Post.FullData>>([]);
onMounted(async () => {
if (gid && typeof gid === "string") curGid.value = Number(gid);
if (forum && typeof forum === "string") curForum.value = Number(forum);
firstLoad.value = true;
showLoading.start(`正在获取${getGameName(curGid.value)}帖子数据...`);
const gameLabel = getGameLabel(curGid.value);
const forumLabel = getForumLabel(curGid.value, curForum.value);
await TGLogger.Info(`[Posts][${gameLabel}][onMounted][${forumLabel}] 打开帖子列表`);
showLoading.update(`正在获取 ${gameLabel}-${forumLabel} 数据`);
await freshPostData();
curForumLabel.value = forumLabel;
firstLoad.value = true;
});
watch(
() => curGid.value,
Expand Down

0 comments on commit 67a2414

Please sign in to comment.