正常原生小程序自定义导航是可以显示的
< template > < div > < section class = "sec-nav" > < navigation-bar :title = "videoTitle" :navBackgroundColor = "'pink'" :titleColor = "'green'" :back-visible = "true" :home-path = "'/pages/index/main'" ></ navigation-bar > </ section > < section class = "content" > 这里是内容 </ section > </ div > </ template > |
webview页自定义导航就会有问题
< template > < div > < section class = "sec-nav" > < navigation-bar :title = "videoTitle" :navBackgroundColor = "'pink'" :titleColor = "'green'" :back-visible = "true" :home-path = "'/pages/index/main'" ></ navigation-bar > </ section > < web-view src = "https://www.baidu.com/" /> </ div > </ template > |
1.开发者工具上还是显示原来的导航
2.真机上显示两个导航
请问有没有人遇到这种问题,如果要在webview上使用的话 有没有什么解决办法呢?
web-view是系统默认的
web-view不支持自定义
navigation
显示默认的