diff --git a/src/views/t-post.vue b/src/views/t-post.vue index 2293c081..088286d5 100644 --- a/src/views/t-post.vue +++ b/src/views/t-post.vue @@ -171,11 +171,6 @@ onMounted(async () => { showLoading.end(); }); -async function toTopic(topic: TGApp.Plugins.Mys.Topic.Info): Promise { - const gid = postData.value?.post.game_id ?? topic.game_id; - await emit("active_deep_link", `router?path=/posts/${gid}/${topic.id}`); -} - function showOverlayC() { showCollection.value = true; } @@ -245,6 +240,11 @@ async function toPost(): Promise { await TGClient.open("web_thin", url); } +async function toTopic(topic: TGApp.Plugins.Mys.Topic.Info): Promise { + const gid = postData.value?.post.game_id ?? topic.game_id; + await emit("active_deep_link", `router?path=/posts/topic/${gid}/${topic.id}`); +} + async function toForum(forum: TGApp.Plugins.Mys.Post.Forum): Promise { await emit("active_deep_link", `router?path=/posts/forum/${forum.game_id}/${forum.id}`); }