fix(vue-app): use globals.nuxt for fetch client mixin (#7103)

This commit is contained in:
Pooya Parsa 2020-03-18 10:30:50 +00:00 committed by GitHub
parent 124ab40aee
commit c8e7397d07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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--)
}