微信小程序报错 Invalid attempt to destructure non-iterable instance.

 根据这句话“In order to be iterable, non-array objects must have a [Symbol.iterator]() method.”应该是结构出问题了,检查一下代码发现,在v-if判断的时候,判断

value.PICS的长度是否等于3,忽略掉了这个参数是否存在,所以在value.PICS.length == 3之前先判断这个变量是否存在。

原文地址:https://www.cnblogs.com/zaco/p/13740481.html