在OnReady中加以下代码
var wv;
// #ifdef APP-PLUS
console.log('App plus2')
var currentWebview = this.$mp.page.$getAppWebview() //获取当前页面的webview对象
setTimeout(function() {
wv = currentWebview.children()[0]
wv.setStyle({scalable:true})
}, 1000); //如果是页面初始化调用时,需要延时一下
// #endif
相关博文
uni app webview 缩放页面实现
