Skip to content

Commit

Permalink
🐛 修复路径问题
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Nov 17, 2024
1 parent 4bc1808 commit 8a89883
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/views/t-post.vue
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,6 @@ onMounted(async () => {
showLoading.end();
});
async function toTopic(topic: TGApp.Plugins.Mys.Topic.Info): Promise<void> {
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;
}
Expand Down Expand Up @@ -245,6 +240,11 @@ async function toPost(): Promise<void> {
await TGClient.open("web_thin", url);
}
async function toTopic(topic: TGApp.Plugins.Mys.Topic.Info): Promise<void> {
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<void> {
await emit("active_deep_link", `router?path=/posts/forum/${forum.game_id}/${forum.id}`);
}
Expand Down

0 comments on commit 8a89883

Please sign in to comment.