mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
🚨 消除Qodana警告
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -168,7 +168,7 @@ async function listenSub(): Promise<UnlistenFn> {
|
||||
}
|
||||
|
||||
async function share(): Promise<void> {
|
||||
const replyDom = document.getElementById(replyId);
|
||||
const replyDom: HTMLElement | null = document.getElementById(replyId);
|
||||
if (replyDom === null) return;
|
||||
await generateShareImg(replyId, replyDom, 3);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user