mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-15 03:53:16 +08:00
🚸 区分分区/版块点击跳转页面
分区→对应分区资讯页 版块→帖子分区+版块页
This commit is contained in:
@@ -15,9 +15,15 @@
|
||||
<TMiImg
|
||||
:src="getGameIcon(postData?.forum?.game_id || postData.post.game_id)"
|
||||
alt="gameIcon"
|
||||
title="点击前往资讯页面"
|
||||
@click="toGame(postData?.forum?.game_id || postData.post.game_id)"
|
||||
/>
|
||||
<div v-if="postData.forum" class="mpm-forum" @click="toForum(postData.forum)">
|
||||
<div
|
||||
v-if="postData.forum"
|
||||
class="mpm-forum"
|
||||
title="点击前往版块页面"
|
||||
@click="toForum(postData.forum)"
|
||||
>
|
||||
<TMiImg :ori="true" :src="postData.forum.icon" alt="forumIcon" />
|
||||
<span>{{ postData.forum.name }}</span>
|
||||
</div>
|
||||
@@ -455,7 +461,7 @@ async function toTopic(topic: TGApp.BBS.Post.Topic): Promise<void> {
|
||||
}
|
||||
|
||||
async function toGame(gameId: number): Promise<void> {
|
||||
await emit("active_deep_link", `router?path=/posts/forum/${gameId}`);
|
||||
await emit("active_deep_link", `router?path=/news/${gameId}`);
|
||||
}
|
||||
|
||||
async function toForum(forum: TGApp.BBS.Post.Forum): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user