mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
🐛 修复 postRef 为 null 问题
This commit is contained in:
@@ -136,7 +136,6 @@ onMounted(async () => {
|
||||
loadingTitle.value = "正在渲染数据...";
|
||||
renderPost.value = getRenderPost(postData.value);
|
||||
shareTitle.value = `Post_${postId}`;
|
||||
postRef.value = <HTMLElement>document.querySelector(".tp-post-body");
|
||||
await appWindow.setTitle(`Post_${postId} ${postData.value.post.subject}`);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
@@ -153,6 +152,7 @@ onMounted(async () => {
|
||||
}
|
||||
await nextTick(() => {
|
||||
loading.value = false;
|
||||
postRef.value = <HTMLElement>document.querySelector(".tp-post-body");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user