mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix(vue-app): re-call $fetch
if data is missing in payload (#9026)
This commit is contained in:
parent
24c71dc3c3
commit
2c4cc04b49
@ -83,6 +83,12 @@ function createdFullStatic() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If there is a missing payload
|
||||||
|
if (!data) {
|
||||||
|
this.$fetch()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// Merge data
|
// Merge data
|
||||||
for (const key in data) {
|
for (const key in data) {
|
||||||
Vue.set(this.$data, key, data[key])
|
Vue.set(this.$data, key, data[key])
|
||||||
|
Loading…
Reference in New Issue
Block a user