我在做app的时候,调试tabBar页面滚动时莫名其妙的闪屏,其他页面不闪屏,可能跟新建的项目样式有关。
修改方法如下。
在pages.json中
"tabBar": {"selectedColor": "#204AFF","color": "#ccc","backgroundColor": "#ffffff",//把下面这个blurEffect注释掉,对就是这么简单,折腾我一小时。// "blurEffect": "dark","list": [{"text": "首页","pagePath": "pages/index/index","iconPath": "/static/pie7.png","selectedIconPath": "/static/pie6.png"},{"text": "检查记录","pagePath": "pages/record/record","iconPath": "/static/pie2.png","selectedIconPath": "/static/pie4.png"},{"text": "我的","pagePath": "pages/home/home","iconPath": "/static/pie3.png","selectedIconPath": "/static/pie5.png"}]},
如上代码,把blurEffect那行注释调,这样在app调试就不会闪屏了。