From 5cc48c9438d761c0ca4a6aa19c81e575e73fd8dc Mon Sep 17 00:00:00 2001 From: BTMuli Date: Sat, 9 Aug 2025 16:29:47 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20=E5=A4=84=E7=90=86=E6=9C=AA?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E7=89=88=E5=9D=97=E5=B8=96=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/t-post.vue | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) 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}`); }