uni-app中In order to be iterable, non-array objects must have a [Symbol.iterator]() method.报错

TypeError: Invalid attempt to destructure non-iterable instance. 

In order to be iterable, non-array objects must have a [Symbol.iterator]() method.

经检查没发现组件和页面中存在错误逻辑

后上网查看DCloud社区问答

封装的组件和页面中的初始值是否有null值,如果有将其改为对应类型。

测试后,再无此报错,排雷成功!!!

猜你喜欢

转载自blog.csdn.net/qq_35775675/article/details/108865813
今日推荐