mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-04-17 21:19:04 +08:00
🚨 尝试修复Sentry报错
Cannot read properties of undefined (reading 'upvote_type')
This commit is contained in:
@@ -245,7 +245,7 @@ onMounted(async () => {
|
||||
}
|
||||
postData.value = resp;
|
||||
console.log(resp);
|
||||
isLike.value = postData.value.self_operation.upvote_type !== 0;
|
||||
isLike.value = (postData.value.self_operation?.upvote_type ?? 0) > 0;
|
||||
await showLoading.update("正在渲染数据");
|
||||
renderPost.value = await getRenderPost(postData.value);
|
||||
await webviewWindow
|
||||
|
||||
Reference in New Issue
Block a user