title: How to add plugin to all vuex actions?
body: <p>I can add my plugin to all Vue components like by using Vue.use(myPlugin) and then access it via this.$myPlugin.</p>
  
  <p>I want to call my plugin from vuex.</p>
  
  <p>How can i make same thing with Vuex store actions?</p>
  
  <p>The plugin is this:</p>
  
  <pre><code>const SwaggerApi = {
    install(Vue, options) {
      Swagger({
        url: 'http://localhost:3000/explorer/swagger.json',
        requestInterceptor(req) {
          req.headers['Accept'] = 'application/json'
          req.headers['content-type'] = 'application/json'
          req.headers['Access-Control-Allow-Origin'] = 'http://localhost:3000'
          req.headers['Authorization'] = localStorage.getItem('token')
          return req
        }
      })
        .then((client) =&gt; {
          // console.log(client)
          client.spec.basePath = '/api'
          Vue.prototype.$swagg = client.apis // &lt;=== What should be here?
  
        }, (error) =&gt; {
          console.error('failed to load api spec: %o', error)
        })
    }
  }
  </code></pre>
  
  <p>I tried to add <code>Vue.use(SwaggerApi)</code> in my store, and 'Vuex.use(SwaggerApi)' and `plugins:[SwaggerApi]' to no avail.</p>