Cannot read property 'length' of undefined;at api?

发布于 8 年前作者 gtian10887 次浏览最后编辑 8 年前来自 issues

求大神解决5555

2 回复
mamin
mamin1 楼6 年前

res.data.data的值不是数组类型,所以没有length方法。记得先判断再处理

hmao
hmao2 楼6 年前

先打印一下res,看看有什么样的结果。