问题描述
使用 HBuildX 3.4.7版本还是会存在闪屏问题,不知道是不是我哪里没有配好,希望官方大大抽时间看看
pages.json 文件代码
{
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "uni-app",
"navigationStyle":"custom",
"app-plus": {
"titleNView":false,
"background":"#11151F"
}
}
},
{
"path": "pages/index/kLine",
"style": {
"navigationBarTitleText": "uni-app",
"navigationStyle":"custom",
"app-plus":{
"titleNView":false,
"background":"#191E29",
"animationAlphaBGColor":"#191E29",
"animationType": "slider-in-right"
}
}
}
],
"tabBar": {
"color": "#7a8593",
"selectedColor": "#2DBD96",
"borderStyle": "black",
"backgroundColor": "#1f2630",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页"
}
]
},
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#191E29",
"backgroundColor": "#191E29",
"app-plus": {
"background": "#191E29"
}
}
}
使用跳转的代码
uni.navigateTo({
url: "/pages/index/kLine"
});