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