diff --git a/src/views/t-post.vue b/src/views/t-post.vue index c72a58c5..db4d6bf7 100644 --- a/src/views/t-post.vue +++ b/src/views/t-post.vue @@ -43,7 +43,7 @@ {{ postData.user.nickname }} {{ getMpaLeftDesc() }} -
+
userIcon
@@ -63,11 +63,7 @@ class="tp-post-collection" :title="`合集ID:${postData.collection.collection_id}`" v-if="postData.collection" - @click=" - () => { - showCollection = !showCollection; - } - " + @click="showOverlayC()" > mdi-widgets {{ postData.collection.collection_title }} @@ -100,6 +96,7 @@ import TpParser from "../components/post/tp-parser.vue"; import TpoCollection from "../components/post/tpo-collection.vue"; import Mys from "../plugins/Mys"; import { useAppStore } from "../store/modules/app"; +import TGClient from "../utils/TGClient"; import { createTGWindow } from "../utils/TGWindow"; // loading @@ -170,6 +167,10 @@ watch(loadShare, (value) => { } }); +function showOverlayC() { + showCollection.value = true; +} + function getMpaLeftDesc(): string { return postData.value?.user.certification?.label === "" ? postData.value?.user.introduce ?? "" @@ -231,6 +232,11 @@ function createPostJson(postId: number): void { const jsonTitle = `Post_${postId}_JSON`; createTGWindow(jsonPath, "Dev_JSON", jsonTitle, 960, 720, false, false); } + +async function toAuthor(): Promise { + const url = `https://m.miyoushe.com/ys/#/accountCenter/0?id=${postData.value?.user.uid}`; + await TGClient.open("web_thin", url); +}