Uncaught (in promise) TypeError: Cannot read property ‘protocol’ of undefined 在学习vue过程中,打开网页会出现错误: 正确导入axios的方式如下: //正确写法 import VueAxios from "vue-axios"; //这里我在下载的时候顺便把下载的名字给修改了 Vue.prototype.$http = VueAxios; //而不是 //Vue.use(VueAxios);