From d7ddb40dc640123a5b4c1d78802909ce7333a4cb Mon Sep 17 00:00:00 2001 From: lau572 <1010031226@qq.com> Date: Thu, 28 Dec 2023 18:24:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=83=85=E6=8A=A5=E6=9D=BF=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/information/board/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ruoyi-ui/src/views/information/board/index.vue b/ruoyi-ui/src/views/information/board/index.vue index c6df92a6..65d2921a 100644 --- a/ruoyi-ui/src/views/information/board/index.vue +++ b/ruoyi-ui/src/views/information/board/index.vue @@ -1037,6 +1037,8 @@ export default { // obj.CONTENT = item.CONTENT obj.CONTENT = item.CONTENT.replaceAll(',','\\,') obj.CONTENT = obj.CONTENT.replaceAll('=','\\=') + obj.CONTENT = obj.CONTENT.replaceAll('\n','\\\\n') + // obj.CONTENT = obj.CONTENT.replaceAll('=','\=') obj.width = devicePixel[0] @@ -1226,10 +1228,13 @@ export default { item.screenSize = item.displayAreaWidth + '*' + item.displayAreaHeight item.CONTENT = item.textContent.replaceAll('\\,',',') item.CONTENT = item.CONTENT.replaceAll('\\=','=') + item.CONTENT = item.CONTENT.replaceAll('\\\\n','\n') item.formatStyle = item.verticalAlignment this.contentList.push(item) + + this.form.devicePixel = item.screenSize } console.log(this.contentList, 'onSubmit-----this.contentList') // this.rowDrop(); @@ -1243,7 +1248,6 @@ export default { this.submitButton = false }) this.deviceId = deviceId - this.form.devicePixel = '768*64' // 根据情报板id获取分辨率