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获取分辨率