A Vue.js plugin that binds axios to the Vue instance, providing $http and $axios methods for making HTTP requests. Version 1.3.0 is the current stable release. It offers request/response interceptors configuration via Vue.use options. Compared to similar libraries like vue-resource, it leverages the popular axios library with its extensive features. Note: Since v1.3.0, the default content-type is no longer forced to application/x-www-form-urlencoded; users must configure it manually.
npm install vue-axios-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up vue-axios-plugin with interceptors and demonstrates basic GET and POST requests using $http and $axios.
Manually set 'Content-Type': 'application/x-www-form-urlencoded' and use qs.stringify for data when needed.
Use this.$axios.put(...) or this.$axios.delete(...) instead.
Migrate to vue-axios (https://github.com/imcvampire/vue-axios) or directly use axios with Vue.prototype.$http = axios.
Ensure Vue.use(VueAxiosPlugin) is called in your entry file before creating any Vue instances.
Manually set headers: { 'Content-Type': 'application/x-www-form-urlencoded' } and use qs.stringify(data) for POST data.