diff --git a/src/components/post/tpo-collection.vue b/src/components/post/tpo-collection.vue index 81013f19..db324f55 100644 --- a/src/components/post/tpo-collection.vue +++ b/src/components/post/tpo-collection.vue @@ -88,7 +88,7 @@ watch( async (value) => { if (value) { await new Promise((resolve) => setTimeout(resolve, 500)); - const postList = document.getElementById( + const postList: HTMLElement | null = document.getElementById( `post-collect-overlay-${props.collection.collection_id}`, ); if (postList === null) return; diff --git a/src/components/postReply/tpr-reply.vue b/src/components/postReply/tpr-reply.vue index 67b24dad..d349a87f 100644 --- a/src/components/postReply/tpr-reply.vue +++ b/src/components/postReply/tpr-reply.vue @@ -168,7 +168,7 @@ async function listenSub(): Promise { } async function share(): Promise { - const replyDom = document.getElementById(replyId); + const replyDom: HTMLElement | null = document.getElementById(replyId); if (replyDom === null) return; await generateShareImg(replyId, replyDom, 3); }