Commit aa9e4881 authored by Mac's avatar Mac

1

parent a3795bf1
...@@ -624,7 +624,10 @@ ...@@ -624,7 +624,10 @@
}, },
getcontnet(data, length) { getcontnet(data, length) {
if (this.addMsg.Type == 2) { if (this.addMsg.Type == 2) {
this.addMsg.Description = data.replace(/<\/?p[^>]*>/gi,'') let obj = JSON.parse(JSON.stringify(data))
let a = obj.replace(/<\/p>/g,'</p>\n')//处理换行的问题
this.addMsg.Description = a.replace(/<\/?p[^>]*>/gi,'')
} else { } else {
this.addMsg.Content = data this.addMsg.Content = data
this.addMsg.SendContent = JSON.parse(JSON.stringify(data)) this.addMsg.SendContent = JSON.parse(JSON.stringify(data))
...@@ -666,8 +669,9 @@ ...@@ -666,8 +669,9 @@
}) })
// console.log(this.addMsg.SendContent)
} }
// console.log(this.addMsg.Content)
} }
}, },
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment