在打包的APP中發現webview打開顯示空白
最后發現是高度問題
最后給style設置動態高度:
<web-view ref="webview" :style="viewStyle" allow :fullscreen="true" :webview-styles="webviewStyles" :src="UrlLink" @onPostMessage="handleMessage" @message="handleMessage"></web-view>
onReady() {let _this = this;// #ifdef APP-PLUS || MP-WEIXINuni.getSystemInfo({success: function (res) {_this.viewStyle.height = res.windowHeight;}});// #endif// #ifdef H5this.viewStyle.height = window.screen.height - 44 + "px";// #endif
}