环境:uniapp 微信小程序 uview u-waterfall 报错
Property or method "rightList" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
出现这个是当前组件的数据出了问题,如下:
问题:这是我放在瀑布流中的数据,我需要使用slicePrice函数
加工一下,但是这个方法有问题,输出的值不对,所以影响了瀑布流的加载
解决办法:在组件中不要有修改数据,影响瀑布流的生成,将数据解析的步骤放在组件外
,使得传到组件中的数据,可以直接渲染!
怎么发现问题:把放在瀑布流组件中的数据全部删掉,再一个个的加上,就能判断是哪个节点除了问题