mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +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
|
||||
}
|
||||
|
||||
// If there is a missing payload
|
||||
if (!data) {
|
||||
this.$fetch()
|
||||
return
|
||||
}
|
||||
|
||||
// Merge data
|
||||
for (const key in data) {
|
||||
Vue.set(this.$data, key, data[key])
|
||||
|
Loading…
Reference in New Issue
Block a user