diff --git a/packages/uni-cli-shared/components/page-meta.vue b/packages/uni-cli-shared/components/page-meta.vue index 730e70c08a29f6e0998fbf56992f5f13b61d3d5e..c231f39172bb47f7233d2d0884074d452335088c 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