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值,如果有将其改为对应类型。

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

你可能感兴趣的:(uni-app,vue.js,uni-app,javascript)