From 611ae19c5e386d1fea5cb1a179099ba885ee1847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Thu, 12 Sep 2024 11:06:56 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20=E6=B6=88=E9=99=A4Qodana?= =?UTF-8?q?=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/post/tpo-collection.vue | 2 +- src/components/postReply/tpr-reply.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }