diff --git a/src/platforms/app-plus/service/framework/webview/parser/webview-style-parser.js b/src/platforms/app-plus/service/framework/webview/parser/webview-style-parser.js index c9520f6f581c86f0ec8a98c2f2ca630c2ff47055..74d5cb2f3c08020f2ac0df61402b83f2467570c6 100644 --- a/src/platforms/app-plus/service/framework/webview/parser/webview-style-parser.js +++ b/src/platforms/app-plus/service/framework/webview/parser/webview-style-parser.js @@ -42,6 +42,16 @@ export function parseWebviewStyle (id, path, routeOptions = {}) { } }) + const backgroundColor = routeOptions.window.backgroundColor + if (backgroundColor) { + if (!webviewStyle.background) { + webviewStyle.background = backgroundColor + } + if (!webviewStyle.backgroundColorTop) { + webviewStyle.backgroundColorTop = backgroundColor + } + } + const titleNView = parseTitleNView(routeOptions) if (titleNView) { if (