🔥 移除帖子的 loadmore,刷新已经够用

This commit is contained in:
BTMuli
2024-01-01 00:05:29 +08:00
parent 508d119a81
commit 2b29a94cad
3 changed files with 15 additions and 64 deletions

View File

@@ -10,23 +10,19 @@ import MysApi from "../api";
/**
* @description 获取特定论坛列表
* @since Beta v0.3.7
* @since Beta v0.3.9
* @param {number} forumId 特定论坛 ID
* @param {number} gid GID
* @param {number} type 排序方式: 0-按热度排序1-最新回复2-按时间排序
* @param {number} page 页码
* @return {Promise<TGApp.Plugins.Mys.Forum.FullData>}
*/
async function getForumList(
forumId: number,
gid: number = 2,
type: number = 0,
page: number = 1,
): Promise<TGApp.Plugins.Mys.Forum.FullData> {
const url = MysApi.Forum.replace("{forum}", forumId.toString())
.replace("{gid}", gid.toString())
.replace("{type}", type.toString())
.replace("{page}", page.toString());
const url = MysApi.Forum.replace("{forum}", forumId.toString()).replace(
"{type}",
type.toString(),
);
return await http.fetch<TGApp.Plugins.Mys.Forum.Response>(url).then((res) => res.data.data);
}