diff --git a/src/components/viewPost/vp-overlay-collection.vue b/src/components/viewPost/vp-overlay-collection.vue index b7864f23..0b478305 100644 --- a/src/components/viewPost/vp-overlay-collection.vue +++ b/src/components/viewPost/vp-overlay-collection.vue @@ -2,20 +2,20 @@
- {{ props.collection.collection_title }} + {{ props.collection.collection_title }} 合集ID:{{ props.collection.collection_id }}
-
-
- +
+
+ 加载中...
@@ -26,6 +26,7 @@ import TOverlay from "@comp/app/t-overlay.vue"; import TPostcard from "@comp/app/t-postcard.vue"; import bbsReq from "@req/bbsReq.js"; import postReq from "@req/postReq.js"; +import { openUrl } from "@tauri-apps/plugin-opener"; import { nextTick, onMounted, shallowRef, useTemplateRef, watch } from "vue"; type TpoCollectionProps = { collection: TGApp.BBS.Post.Collection; gid: number }; @@ -64,6 +65,10 @@ async function refreshInfo(): Promise { async function refreshPosts(): Promise { postList.value = await postReq.collection(props.collection.collection_id); } + +async function toOuterCollect(): Promise { + await openUrl(`https://www.miyoushe.com/ys/collection/${props.collection.collection_id}`); +}