From 710cff42e61e1d07abb66024a1c3302fb8ad4446 Mon Sep 17 00:00:00 2001 From: hui <770260999@qq.com> Date: Fri, 19 Jan 2024 00:07:41 +0800 Subject: [PATCH] gengxin --- .../JiHeExpressway/components/infoBoard/BoardPreview.vue | 4 ++-- .../JiHeExpressway/components/infoBoard/BoardTplPreview.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardPreview.vue b/ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardPreview.vue index 828478b6..aff7e51d 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardPreview.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardPreview.vue @@ -71,7 +71,7 @@ export default { }, tpl:{ handler(newV){ - this.contentArr = this.tpl.textContent.replace(/\+n|\+r\n/g, '&&&&&').replace(/ /g, ' ').split('&&&&&'); + this.contentArr = this.tpl.textContent.replace(/\\+n|\\+r\n/g, '&&&&&').replace(/ /g, ' ').split('&&&&&'); this.setStyle(); }, deep:true, @@ -125,7 +125,7 @@ export default { display: flex; overflow: hidden; flex-direction: column; - justify-content: flex-start; + justify-content: center; .boardTxt{ color: #f00; line-height: 1; diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardTplPreview.vue b/ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardTplPreview.vue index ddb1a280..7d937b98 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardTplPreview.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardTplPreview.vue @@ -56,7 +56,7 @@ export default { }, tpl:{ handler(newV){ - this.contentArr = this.tpl.content.replace(/\n|\r\n/g, '&&&&&').replace(/ /g, ' ').split('&&&&&'); + this.contentArr = this.tpl.content.replace(/\\+n|\\+r\n/g, '&&&&&').replace(/ /g, ' ').split('&&&&&'); this.setStyle(); }, deep:true, @@ -107,7 +107,7 @@ export default { display: flex; overflow: hidden; flex-direction: column; - justify-content: flex-start; + justify-content: center; .boardTxt{ color: #f00; line-height: 1;