diff --git a/src/components/postReply/tpr-main.vue b/src/components/postReply/tpr-main.vue new file mode 100644 index 00000000..bd6415b2 --- /dev/null +++ b/src/components/postReply/tpr-main.vue @@ -0,0 +1,109 @@ + + + diff --git a/src/components/postReply/tpr-reply.vue b/src/components/postReply/tpr-reply.vue new file mode 100644 index 00000000..49ea9753 --- /dev/null +++ b/src/components/postReply/tpr-reply.vue @@ -0,0 +1,195 @@ + + + diff --git a/src/plugins/Mys/request/getPostReply.ts b/src/plugins/Mys/request/getPostReply.ts index 1af93be1..ef994658 100644 --- a/src/plugins/Mys/request/getPostReply.ts +++ b/src/plugins/Mys/request/getPostReply.ts @@ -10,7 +10,7 @@ import MysApi from "../api/index.js"; /** * @description 获取帖子回复信息 * @since Beta v0.5.5 - * @param {number} postId 帖子 ID + * @param {string} postId 帖子 ID * @param {number} gid 社区 ID * @param {boolean} isHot 是否热门 * @param {boolean} onlyMaster 是否只看楼主 @@ -20,10 +20,10 @@ import MysApi from "../api/index.js"; * @return {Promise} */ export async function getPostReply( - postId: number, + postId: string, gid: number, - isHot: boolean, - lastId: string, + isHot: boolean = true, + lastId?: string, onlyMaster: boolean = false, orderType?: 1 | 2, size: number = 20, diff --git a/src/views/t-post.vue b/src/views/t-post.vue index 86fece50..f7469bc0 100644 --- a/src/views/t-post.vue +++ b/src/views/t-post.vue @@ -7,6 +7,7 @@ v-model:loading="loadShare" :title="shareTitle" /> +