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;


});

 

posted @ 2020-05-23 00:34  Monica_维维  阅读(1748)  评论(0编辑  收藏  举报