mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-15 09:48:14 +08:00
🚨 消除Qodana警告
This commit is contained in:
@@ -88,7 +88,7 @@ watch(
|
|||||||
async (value) => {
|
async (value) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
await new Promise((resolve) => setTimeout(resolve, 500));
|
await new Promise((resolve) => setTimeout(resolve, 500));
|
||||||
const postList = document.getElementById(
|
const postList: HTMLElement | null = document.getElementById(
|
||||||
`post-collect-overlay-${props.collection.collection_id}`,
|
`post-collect-overlay-${props.collection.collection_id}`,
|
||||||
);
|
);
|
||||||
if (postList === null) return;
|
if (postList === null) return;
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ async function listenSub(): Promise<UnlistenFn> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function share(): Promise<void> {
|
async function share(): Promise<void> {
|
||||||
const replyDom = document.getElementById(replyId);
|
const replyDom: HTMLElement | null = document.getElementById(replyId);
|
||||||
if (replyDom === null) return;
|
if (replyDom === null) return;
|
||||||
await generateShareImg(replyId, replyDom, 3);
|
await generateShareImg(replyId, replyDom, 3);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user