mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-21 07:59:33 +00:00
fix(vue-app): use globals.nuxt
for fetch client mixin (#7103)
This commit is contained in:
parent
124ab40aee
commit
c8e7397d07
@ -53,7 +53,7 @@ function created() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function $fetch() {
|
async function $fetch() {
|
||||||
this.$nuxt.nbFetching++
|
this.<%= globals.nuxt %>.nbFetching++
|
||||||
this.$fetchState.pending = true
|
this.$fetchState.pending = true
|
||||||
this.$fetchState.error = null
|
this.$fetchState.error = null
|
||||||
this._hydrated = false
|
this._hydrated = false
|
||||||
@ -75,6 +75,6 @@ async function $fetch() {
|
|||||||
this.$fetchState.pending = false
|
this.$fetchState.pending = false
|
||||||
this.$fetchState.timestamp = Date.now()
|
this.$fetchState.timestamp = Date.now()
|
||||||
|
|
||||||
this.$nextTick(() => this.$nuxt.nbFetching--)
|
this.$nextTick(() => this.<%= globals.nuxt %>.nbFetching--)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user