Skip to content

Commit

Permalink
fix: spread options by string
Browse files Browse the repository at this point in the history
  • Loading branch information
chantouchsek committed May 24, 2023
1 parent ffa539a commit e443ba2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nuxt/templates/plugin.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import Vue from 'vue'
import AxiosHttp, { BaseService, Validator } from 'vue-axios-http'

const options = '<%= options %>'
const resetParameter = '<%= options.resetParameter %>'
const errorProperty = '<%= options.errorProperty %>'
const parsedQs = '<%= options.parsedQs %>'

Vue.use(AxiosHttp, options)
Vue.use(AxiosHttp, { errorProperty, parsedQs, resetParameter })

export default function ({ $axios }, inject) {
BaseService.$http = $axios
Expand Down

0 comments on commit e443ba2

Please sign in to comment.