mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-16 09:58:13 +08:00
🐛 修复topic切换分区不生效
This commit is contained in:
@@ -124,8 +124,9 @@ async function firstLoad(): Promise<void> {
|
||||
curGame.value = toRaw(info.game_info_list.find((i) => i.id === curGid.value));
|
||||
}
|
||||
if (curGame.value === undefined) curGame.value = info.game_info_list[0];
|
||||
curGid.value = curGame.value.id;
|
||||
showLoading.update(`正在加载${curGame.value.name}帖子列表`);
|
||||
const postList = await Mys.Post.getTopicPostList(gid, topic, curSortType.value);
|
||||
const postList = await Mys.Post.getTopicPostList(curGid.value, topic, curSortType.value);
|
||||
if ("retcode" in postList) {
|
||||
showLoading.end();
|
||||
showSnackbar.error(`[${postList.retcode}] ${postList.message}`);
|
||||
@@ -144,7 +145,12 @@ async function freshPostData(): Promise<void> {
|
||||
return;
|
||||
}
|
||||
showLoading.start("正在加载帖子列表");
|
||||
const postList = await Mys.Post.getTopicPostList(gid, topic, curSortType.value, lastPostId.value);
|
||||
const postList = await Mys.Post.getTopicPostList(
|
||||
curGid.value,
|
||||
topic,
|
||||
curSortType.value,
|
||||
lastPostId.value,
|
||||
);
|
||||
if ("retcode" in postList) {
|
||||
showLoading.end();
|
||||
showSnackbar.error(`[${postList.retcode}] ${postList.message}`);
|
||||
|
||||
Reference in New Issue
Block a user