提交 d01a057f 编写于 作者: fxy060608's avatar fxy060608

feat(app-plus): render:'always'

上级 d353589a
......@@ -177,9 +177,8 @@ module.exports = function (pagesJson, userManifestJson) {
// 允许内联播放视频
manifestJson.plus.allowsInlineMediaPlayback = true
// 安全区配置
if (appJson.tabBar && appJson.tabBar.list && appJson.tabBar.list.length) {
// 仅包含 tabBar 的时候才配置
// 安全区配置 仅包含 tabBar 的时候才配置
if (!manifestJson.plus.safearea) {
manifestJson.plus.safearea = {
background: appJson.tabBar.backgroundColor || '#FFFFFF',
......@@ -188,6 +187,15 @@ module.exports = function (pagesJson, userManifestJson) {
}
}
}
} else {
// "render": "always"
if (!manifestJson.plus.launchwebview) {
manifestJson.plus.launchwebview = {
'render': 'always'
}
} else if (!manifestJson.plus.launchwebview.render) {
manifestJson.plus.launchwebview.render = 'always'
}
}
let flexDir = false
......
......@@ -30,8 +30,6 @@
"alwaysShowBeforeRender":true
},
"popGesture": "close",
"launchwebview": {
"render": "always"
}
"launchwebview": {}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册