From 31e2e9b3a7bd0d1f4a934ac52e7423b46074a5e1 Mon Sep 17 00:00:00 2001 From: handongxun Date: Thu, 9 Dec 2021 10:53:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20page-meta=20=E7=BB=84=E4=BB=B6=E5=9C=A8?= =?UTF-8?q?=E5=AD=97=E8=8A=82=E5=B0=8F=E7=A8=8B=E5=BA=8F=E4=B8=8A=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/uni-cli-shared/components/page-meta.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/uni-cli-shared/components/page-meta.vue b/packages/uni-cli-shared/components/page-meta.vue index 730e70c08..c231f3917 100644 --- a/packages/uni-cli-shared/components/page-meta.vue +++ b/packages/uni-cli-shared/components/page-meta.vue @@ -147,7 +147,7 @@ export default { setBackgroundTextStyle () { // TODO h5 app-plus 暂不支持 // #ifdef MP - uni.setBackgroundTextStyle({ + uni.setBackgroundTextStyle && uni.setBackgroundTextStyle({ textStyle: this.backgroundTextStyle }) // #endif @@ -155,7 +155,7 @@ export default { setBackgroundColor () { // TODO h5 app-plus 暂不支持 // #ifdef MP - uni.setBackgroundColor({ + uni.setBackgroundColor && uni.setBackgroundColor({ backgroundColor: this.backgroundColor, backgroundColorTop: this.backgroundColorTop, backgroundColorBottom: this.backgroundColorBottom -- GitLab