From 8b604b6f1036289842fc574104a5adec19ae0ebd Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Fri, 24 Mar 2023 16:18:12 +0800 Subject: [PATCH] chore: build --- packages/uni-app-plus/dist/uni.runtime.esm.js | 5 ++++- packages/uni-mp-weixin/dist/uni.api.esm.js | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/uni-app-plus/dist/uni.runtime.esm.js b/packages/uni-app-plus/dist/uni.runtime.esm.js index e06f078c54..cd147f0fd4 100644 --- a/packages/uni-app-plus/dist/uni.runtime.esm.js +++ b/packages/uni-app-plus/dist/uni.runtime.esm.js @@ -17974,7 +17974,7 @@ function isColor(color) { } function initBackgroundColor(webviewStyle, routeMeta) { - const { backgroundColor } = routeMeta; + let { backgroundColor } = routeMeta; if (!backgroundColor) { return; } @@ -17984,6 +17984,9 @@ function initBackgroundColor(webviewStyle, routeMeta) { if (!webviewStyle.background) { webviewStyle.background = backgroundColor; } + else { + backgroundColor = webviewStyle.background; + } if (!webviewStyle.backgroundColorTop) { webviewStyle.backgroundColorTop = backgroundColor; } diff --git a/packages/uni-mp-weixin/dist/uni.api.esm.js b/packages/uni-mp-weixin/dist/uni.api.esm.js index 2c077834c3..e37a82613d 100644 --- a/packages/uni-mp-weixin/dist/uni.api.esm.js +++ b/packages/uni-mp-weixin/dist/uni.api.esm.js @@ -3,7 +3,7 @@ import { normalizeLocale, LOCALE_EN } from '@dcloudio/uni-i18n'; import { LINEFEED, Emitter, sortObject, onCreateVueApp, invokeCreateVueAppHook } from '@dcloudio/uni-shared'; function getBaseSystemInfo() { - return wx.getSystemInfoSync() + return wx.getSystemInfoSync(); } function validateProtocolFail(name, msg) { @@ -1207,7 +1207,9 @@ function isWxKey(key) { } function initWx() { let global = wx; - if (typeof globalThis !== 'undefined' && globalThis.wx && wx !== globalThis.wx) { + if (typeof globalThis !== 'undefined' && + globalThis.wx && + wx !== globalThis.wx) { global = globalThis.wx; } const newWx = {}; -- GitLab