From eb5fb2970ebdef6498f035ab70091d239d0e32a7 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 20 Mar 2023 15:47:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8A=93=E5=8F=96=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/utils/PageBase.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/utils/PageBase.js b/src/components/utils/PageBase.js index acab687..1c3a9b8 100644 --- a/src/components/utils/PageBase.js +++ b/src/components/utils/PageBase.js @@ -20,11 +20,11 @@ class PageBase { } //导航栏标题颜色及状态栏前景颜色,仅支持 black/white if (/navigationBarTextStyle/.test(vue)) { - this.style.navigationBarTextStyle = vue.replace(/[\s\S]*(navigationBarTextStyle:.+),[\s\S]*/gm, '$1') + this.style.navigationBarTextStyle = vue.replace(/[\s\S]*navigationBarTextStyle:([^,]+),[\s\S]*/gm, '$1') } //导航栏背景颜色(同状态栏背景色) if (/navigationBarBackgroundColor/.test(vue)) { - this.style.navigationBarBackgroundColor = vue.replace(/[\s\S]*(navigationBarBackgroundColor:.+),[\s\S]*/gm, '$1') + this.style.navigationBarBackgroundColor = vue.replace(/[\s\S]*navigationBarBackgroundColor:([^,]+),[\s\S]*/gm, '$1') } // //下拉显示出来的窗口的背景色 // if (/backgroundColor/.test(vue)) {