uniapp报错集合

发布时间 2023-05-31 11:18:05作者: iwen1992

1、swiper组件明明按照方法写了,却不起效果?

排查发现,swiper组件宽度为0,设置swiper 宽度即可

2、报错Cannot read property 'forceUpdate' of undefined
原因为未配置小程序appid

3、引用组件,明明目录里面有组件却报找不到?

排查发现,引用地址正常,经过编译后在小程序中锁定的地址不正常,解决方案适当调整地址