提交 57ab3d08 编写于 作者: shutao-dc's avatar shutao-dc

update web-view.uvue 补充平台条件判断

上级 4ed47a5a
......@@ -122,8 +122,14 @@
},
load(event : UniWebViewLoadEvent) {
console.log(JSON.stringify(event.detail));
// #ifdef APP
this.canGoBack = canWebViewGoBack('web-view');
this.canGoForward = canWebViewGoForward('web-view');
// #endif
// #ifdef WEB
this.canGoBack = canWebViewGoBack(this.webviewElement as UniWebViewElement);
this.canGoForward = canWebViewGoForward(this.webviewElement as UniWebViewElement);
// #endif
if (this.autoTest) {
this.eventLoad = {
"tagName": event.target?.tagName,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册