🐛 修复路径问题

This commit is contained in:
目棃
2024-11-17 11:08:32 +08:00
parent 4bc1808478
commit 8a89883784

View File

@@ -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;
}
@@ -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}`);
}