以下是app-plus下
getWebviewInstance() {
// #ifdef APP-PLUS
const currentWebview = this.$scope.$getAppWebview();
if (currentWebview) {
const children = currentWebview.children();
if (children && children.length > 0) {
this.webview = children[0];
console.log('获取到WebView实例:', this.webview);
}
}
// #endif
},