Skip to content

Commit ffa539a

Browse files
committed
fix: 🐛 accept all options from nuxt config
1 parent cffd1eb commit ffa539a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

nuxt/templates/plugin.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import Vue from 'vue'
22
import AxiosHttp, { BaseService, Validator } from 'vue-axios-http'
33

4-
const errorProperty = '<%= options.errorProperty %>'
5-
const parsedQs = '<%= options.parsedQs %>'
4+
const options = '<%= options %>'
65

7-
Vue.use(AxiosHttp, { errorProperty, parsedQs })
6+
Vue.use(AxiosHttp, options)
87

98
export default function ({ $axios }, inject) {
109
BaseService.$http = $axios

0 commit comments

Comments
 (0)