Vue Plugin Axios
Description
Powerful vue plugin for axios. There is support for Nuxt.js
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Usage
Add Vue plugin
import Vue from 'vue'
import VueAxios from 'vue-plugin-axios'
import axios from 'axios'
import store from '@/store'
Vue.use(VueAxios, {
axios,
// example config for axios instance
config: { // axios instance config
baseURL: 'http://localhost:8000/', // api URL
headers: { ... }, // default headers
...
},
interceptors: {
// this function shows how to add Authorization header to requests
beforeRequest (config, axiosInstance) {
// your auth token
const token = store.state.auth.token
if (token) {
config.headers.Authorization = `Bearer ${token}`
}
return config
},
// this function shows how to add errors from server to client app
beforeResponseError (error) {
const { response, message } = error
if (response) { // backend error
// shows response error
alert(error.response.data.message)
} else if (message) { // network error
alert(message)
}
// return Promise.reject(error)
}
}
})
Now you can access from a component:
// no need to import
export default {
data: () => ({
users: null
}),
async mounted () {
// automatic data return, no need to ".data"
this.users = await this.$get('api/get-users/')
const randomUsers = await this.$get('https://randomuser.me/api/')
}
}
Installation
npm install vue-plugin-axios --saveoryarn add vue-plugin-axios- add
Vue.uselike in code above
This is how you can use with Nuxt.js (client + server):
export default ({ store, app }, inject) => {
// Vue.use(VueAxios, for some reason did not work
VueAxios.install(Vue, {
axios,
nuxtInject: inject
})
}
Full API
$get(endpoint[, config])
$delete(endpoint[, config])
$head(endpoint[, config])
$options(endpoint[, config])
$post(endpoint[, data[, config]])
$put(endpoint[, data[, config]])
$patch(endpoint[, data[, config]])
A
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11