Skip to content

Commit e443ba2

Browse files
committed
fix: spread options by string
1 parent ffa539a commit e443ba2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

nuxt/templates/plugin.js

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

4-
const options = '<%= options %>'
4+
const resetParameter = '<%= options.resetParameter %>'
5+
const errorProperty = '<%= options.errorProperty %>'
6+
const parsedQs = '<%= options.parsedQs %>'
57

6-
Vue.use(AxiosHttp, options)
8+
Vue.use(AxiosHttp, { errorProperty, parsedQs, resetParameter })
79

810
export default function ({ $axios }, inject) {
911
BaseService.$http = $axios

0 commit comments

Comments
 (0)