@steve said in Use Plugin inside Vuex module action:
Thanks @benoitranque for this tid bit: http://forum.quasar-framework.org/topic/1898/services-and-axios-plugin
In order to use axios without passing in ‘this’ in the vuex store actions, you can do this:
import Vue from 'vue' export const AUTH_REQUEST = ({ commit, dispatch }, creds) => { return new Promise((resolve, reject) => { Vue.prototype.$axios({ .... }) } })
I was scratching my head when I was writing some common library code to access this.$axios from my static plain javascript libs
this tip saved me having to pass in this or this.$axios … thanks!