提交 e840132e 编写于 作者: D DCloud_LXH 提交者: qiang

fix(app): webview

# Conflicts:
#	packages/uni-app-plus/dist/view.umd.min.js
上级 7cba94e2
......@@ -93,17 +93,15 @@ export default {
}
},
mounted () {
this._onParentReady(() => {
this.htmlId = WEBVIEW_ID_PREFIX + this.$page.id
insertHTMLWebView({
htmlId: this.htmlId
})
updateHTMLWebView({
src: this.$getRealPath(this.src),
webviewStyles: this.webviewStyles
})
UniViewJSBridge.publishHandler(WEBVIEW_INSERTED, {}, this.$page.id)
this.htmlId = WEBVIEW_ID_PREFIX + this.$page.id
insertHTMLWebView({
htmlId: this.htmlId
})
updateHTMLWebView({
src: this.$getRealPath(this.src),
webviewStyles: this.webviewStyles
})
UniViewJSBridge.publishHandler(WEBVIEW_INSERTED, {}, this.$page.id)
},
beforeDestroy () {
removeHTMLWebView()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册