webview的update-title设为false
<template>
<view>
<web-view :webview-styles="webviewStyles" update-title="false" src="https://uniapp.dcloud.io/static/web-view.html"></web-view>
</view>
</template>
pages.json的“globalStyle”中添加一行:”navigationStyle”:”custom”,
还可以在onReady中加
setTimeout(()=>{
uni.setNavigationBarTitle({
title:‘app中要设置的标题’
})
},2000)
…
本文转自 https://blog.p2hp.com/archives/8517
本站仅做收录,版权归原作者所有。