提交 46890881 编写于 作者: D DCloud_LXH

chore(app): darkmode google.defaultNightMode&apple.UIUserInterfaceStyle

上级 fc4114be
......@@ -197,6 +197,15 @@ module.exports = function (pagesJson, userManifestJson, isAppView) {
manifestJson.plus.distribute.plugins = distribute.sdkConfigs
delete manifestJson.plus.distribute.sdkConfigs
}
if (manifestJson.plus.darkmode) {
if (!(distribute.google || (distribute.google = {})).defaultNightMode) {
distribute.google.defaultNightMode = 'auto'
}
if (!(distribute.apple || (distribute.apple = {})).UIUserInterfaceStyle) {
distribute.apple.UIUserInterfaceStyle = 'Automatic'
}
}
}
// 屏幕启动方向
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册