Uncaught (in promise) TypeError: Cannot read property 'length' of undefined at eval报错解决

国际惯例,报错如下:
Uncaught (in promise) TypeError: Cannot read property 'length' of undefined at eval报错解决_第1张图片
刚开始报错的时候调试工具指向循环部分代码,检查了之后发现并没有问题,然后查了半天发现是promise写的有问题,最后在后面加一个.catch来接收错误信息就好了
Uncaught (in promise) TypeError: Cannot read property 'length' of undefined at eval报错解决_第2张图片

你可能感兴趣的:(vue,vue,element)