错误:

    1. Uncaught (in promise) TypeError: **Cannot read property 'protocol' of undefined ...

    源码:
    完整错误:

    1. import axios from 'axios'
    2. import VueAxios from 'vue-axios'
    3. Vue.use(axios, VueAxios)

    修正一:(亲测)

    1. import axios from 'axios'
    2. import VueAxios from 'vue-axios'
    3. Vue.use(VueAxios, axios) // 交换位置

    修正二:

    1. import axios from 'axios'
    2. //Vue.use(axios) // 不用这个
    3. Vue.prototype.$http = axios // 挂载到原型