Hi.
I am trying to access nuxt context from inside an action to be able to access my injected plugins. Kinda similar to how you access the router (this.$router) etc
How would I go about accessing the nuxt context?
Same problem here
`
import { Store } from 'vuex'
declare module 'vuex-module-decorators/dist/types' {
interface VuexModule {
store: Store
}
}
`
add this into a shim file. Turns out you can just access your store like that
eg this.store.$router
Most helpful comment
`
import { Store } from 'vuex'
declare module 'vuex-module-decorators/dist/types' {
interface VuexModule {
store: Store
}
}
`
add this into a shim file. Turns out you can just access your store like that
eg this.store.$router