大致情况如下,在nvue页面中,使用uni.request网络请求后,打印出来的数据比真实数据少,就好像截取了一样,具体表现如下:
uni.request({
url: 'https://xxxxxxxx/contents/homelist', //仅为示例,并非真实接口地址。
method:"POST",
success: (res) => {
console.log(res.data);
}
});
console打印出来的结果如下
,"success":true,"gglist":[{"imgurl":"","cdate":"2019-01-07","id":"8B19D0EC-C389-403A-B2F0-56C5A9242A7A","linkurl":"","title":""}]}__LOG
真实正确数据应该是这样:
{"gglist":[{"imgurl":"","cdate":"2019-01-07","id":"8B19D0EC-C389-403A-B2F0-56C5A9242A7A","linkurl":"","title":""}],"msg":null,"success":true,"datalist":[{"imgurl":"templateImg/201812/img/329f390a09d0a85818f533f2fb3ee335.jpg","cdate":"2018-12-28","id":"6C5404EF-D6C8-4CB5-AB22-2558B7A2E0E2","linkurl":"","title":""},{"imgurl":"/templateImg/201812/img/796b0be80bd051400a00e31117c34d80.jpg","cdate":"2018-12-11","id":"711E7EEE-314D-4F42-984E-0CB2FFFDB2E5","linkurl":"","title":""}]}
lusen (作者)
渲染是对的
2019-01-14 19:27
3***@qq.com
同问,我也是这种情况,数据打印不全,在浏览器打印数据正常,
2019-03-01 17:23