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

feat: vue3 app 平台 manifest 增加检查Android系统webview版本配置

上级 8d82b29b
export function initCheckSystemWebview(manifestJson: Record<string, any>) {
// 检查Android系统webview版本 || 下载X5后启动
let plusWebview = manifestJson.plus.webView
if (plusWebview) {
manifestJson.plus['uni-app'].webView = plusWebview
delete manifestJson.plus.webView
}
}
......@@ -9,6 +9,7 @@ import { initSplashscreen } from './splashscreen'
import { initConfusion } from './confusion'
import { initUniApp } from './uniApp'
import { initLaunchwebview } from './launchwebview'
import { initCheckSystemWebview } from './checksystemwebview'
import { initTabBar } from './tabBar'
import { initI18n } from './i18n'
......@@ -33,6 +34,8 @@ export function normalizeAppManifestJson(
manifestJson,
pagesJson
)
// 依赖 initUniApp 先执行
initCheckSystemWebview(manifestJson)
return initI18n(manifestJson)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册