I have configured my axios like this
const axiosConfig = { baseURL: \'http://127.0.0.1:8000/api\', timeout: 30000, }; Vue.prototype.$axios = axios.create(ax
Instead of
this.$axios.get('items')
use
this.$axios({ url: 'items', baseURL: 'http://new-url.com' })
If you don't pass method: 'XXX' then by default, it will send via get method.
method: 'XXX'
get
Request Config: https://github.com/axios/axios#request-config