diff --git a/src/views/t-post.vue b/src/views/t-post.vue index 070413a7..f9e97a01 100644 --- a/src/views/t-post.vue +++ b/src/views/t-post.vue @@ -10,10 +10,16 @@ PostID:{{ postId }} | Render by TeyvatGuide v{{ appVersion }}
-
- - - {{ postData.forum.name }} +
+ +
+ + {{ postData.forum.name }} +
mdi-eye @@ -189,6 +195,7 @@ onMounted(async () => { return; } postData.value = resp; + console.log(resp); isLike.value = postData.value.self_operation.upvote_type !== 0; await showLoading.update("正在渲染数据"); renderPost.value = await getRenderPost(postData.value); @@ -345,6 +352,10 @@ async function toTopic(topic: TGApp.BBS.Post.Topic): Promise { await emit("active_deep_link", `router?path=/posts/topic/${gid}/${topic.id}`); } +async function toGame(gameId: number): Promise { + await emit("active_deep_link", `router?path=/posts/forum/${gameId}`); +} + async function toForum(forum: TGApp.BBS.Post.Forum): Promise { await emit("active_deep_link", `router?path=/posts/forum/${forum.game_id}/${forum.id}`); }