uniapp报错集合
1、swiper组件明明按照方法写了,却不起效果?
排查发现,swiper组件宽度为0,设置swiper 宽度即可
2、报错Cannot read property 'forceUpdate' of undefined
原因为未配置小程序appid
3、引用组件,明明目录里面有组件却报找不到?
排查发现,引用地址正常,经过编译后在小程序中锁定的地址不正常,解决方案适当调整地址
4、this.$route.query 在真机是不认这种写法的,解决方案
onLoad(options){
//options即为query
}
5、循环遍历view渲染,真机数据将会被改变
使用uni自带块元素,如uni-col