3***@qq.com
3***@qq.com
  • 发布:2019-08-07 16:11
  • 更新:2020-06-04 10:51
  • 阅读:1257

【报Bug】pages.json 配置顶部导航返回按钮不出现,只有按f5才出现

分类:uni-app

详细问题描述

顶部导航栏,返回按钮无法显示,按F5刷新才显示
[内容]
{
"pages": [ //pages数组中第一项表示应用启动页,
{
"path": "pages/login/login",
"style": {
"navigationBarTitleText": "登录"
}
},
// #ifdef APP-PLUS || H5
{
"path": "pages/main/workbench",
"style": {
"navigationBarTitleText": "工作台"
}
},{
"path": "pages/reg/reg",
"style": {
"navigationBarTitleText": "注册"
}
}, {
"path": "pages/pwd/pwd",
"style": {
"navigationBarTitleText": "找回密码"
}
}, {
"path": "pages/user/user",
"style": {
"navigationBarTitleText": "我的"
}
}
,

    {  
        "path" : "pages/projectServiceList/projectServiceList",  
        "style" : {  
        "navigationBarTitleText": "服务动态",  
        "app-plus": {  
                "bounce": "none",  

                "titleNView": {  

                    "buttons": [{  
                        "type": "share"  
                    }]  
                }  
            }  
        }  
    }  
    // #endif  

],  
"tabBar": {  
    "color": "#7a7e83",  
    "selectedColor": "#0faeff",  
    "backgroundColor": "#ffffff",  
    "list": [{  
        "pagePath": "pages/main/main",  
        "text": "首页",  
        "iconPath": "static/img/home.png",  
        "selectedIconPath": "static/img/homeHL.png"  
    }, {  
        "pagePath": "pages/user/user",  
        "text": "我的",  
        "iconPath": "static/img/user.png",  
        "selectedIconPath": "static/img/userHL.png"  
    }]  
},  
"globalStyle": {  

    "navigationBarTextStyle": "black",  
    "navigationBarBackgroundColor": "white",  
    "backgroundColor": "#fbf9fe"  
}  

}

这是配置文件
而且
所有带原生顶部导航栏的控件,按F5都会出现返回按钮.,看案例没有看到配置默认显示返回按钮代码.

[可重现代码片段]

联系方式

附上源码
[QQ]
370455951

2019-08-07 16:11 负责人:无 分享
已邀请:
3***@qq.com

3***@qq.com (作者) - 90采坑王

帮忙顶上去顶上去

6***@qq.com

6***@qq.com - 【新人奖励】

咋解决的。。

1***@qq.com

1***@qq.com

页面跳转使用uni.navigateTo可以解决这个问题。

该问题目前已经被锁定, 无法添加新回复