提交 fe5ce28c 编写于 作者: d-u-a's avatar d-u-a

feat: 开发期间默认检查 Android 系统 webview 版本是否低于 64.0.3282.116

上级 febf317f
export function initCheckSystemWebview(manifestJson: Record<string, any>) {
// 检查Android系统webview版本 || 下载X5后启动
let plusWebview = manifestJson.plus.webView
if (plusWebview) {
manifestJson.plus['uni-app'].webView = plusWebview
let plusWebView = manifestJson.plus.webView
if (plusWebView) {
manifestJson.plus['uni-app'].webView = plusWebView
delete manifestJson.plus.webView
}
if (process.env.NODE_ENV === 'development' && !plusWebView) {
manifestJson.plus['uni-app'].webView = {
minUserAgentVersion: '64.0.3282.116',
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册