🐛 Fix prefetch change data properties case
This commit is contained in:
@@ -180,7 +180,7 @@ const user = ref<any>(null)
|
||||
async function fetchUser() {
|
||||
if (window.DyPrefetch?.Account != null) {
|
||||
console.log('[Fetch] Use the pre-rendered account data.')
|
||||
user.value = window.DyPrefetch.Account
|
||||
user.value = window.DyPrefetch.account
|
||||
return
|
||||
}
|
||||
|
||||
|
@@ -63,7 +63,7 @@ const notFound = ref(false)
|
||||
async function fetchPost() {
|
||||
if (window.DyPrefetch?.Post != null) {
|
||||
console.log('[Fetch] Use the pre-rendered post data.')
|
||||
post.value = window.DyPrefetch.Post
|
||||
post.value = window.DyPrefetch.post
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user