mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +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() {
|
||||
this.$nuxt.nbFetching++
|
||||
this.<%= globals.nuxt %>.nbFetching++
|
||||
this.$fetchState.pending = true
|
||||
this.$fetchState.error = null
|
||||
this._hydrated = false
|
||||
@ -75,6 +75,6 @@ async function $fetch() {
|
||||
this.$fetchState.pending = false
|
||||
this.$fetchState.timestamp = Date.now()
|
||||
|
||||
this.$nextTick(() => this.$nuxt.nbFetching--)
|
||||
this.$nextTick(() => this.<%= globals.nuxt %>.nbFetching--)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user