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

导致原因是vue中的axios导致的无法读取未定义的属性“protocol”

 因为post()方法中没有写请求的地址和参数

    axios.post().then((res) => {
//解析Controller响应回的数据,为模型数据赋值
this.pagination.total = res.data.total;
this.dataList = res.data.rows;


});

原文地址:https://www.cnblogs.com/Koma-vv/p/12940647.html