diff --git a/pages/home/index.vue b/pages/home/index.vue index b6b4b6b..0c15c94 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -405,7 +405,7 @@ export default { let _notice = uni.getStorageSync("miniApp-info").notice || '愿祖国繁荣富强,山河锦绣如画;盼华夏儿女同心,共筑盛世中华!'; if (_notice) { var reg = /[\r\n]/g; - notice = _notice.replace(reg, ""); + _notice = _notice.replace(reg, ""); that.noticList = [_notice]; that.noticeColor = uni.getStorageSync("miniApp-info").noticeColor; that.showNotic = "play";