Commit fec3d206 by 杨明

fixed

1 parent 969d5897
...@@ -512,13 +512,9 @@ export default { ...@@ -512,13 +512,9 @@ export default {
const idx = this.previewList.findIndex(item => item.attType == this.ATT_TYPE.TEXT) const idx = this.previewList.findIndex(item => item.attType == this.ATT_TYPE.TEXT)
if (idx !== -1) { if (idx !== -1) {
if (!this.previewList[idx].attContent) { if (!this.previewList[idx].attContent) {
html = html html = html.replace('\n', '').replace(/<br\/>/g, '')
.replace('\n', '')
.replace(/<br\/>/g, '')
.replace(/&amp;/g, '&')
.replace(/&lt;/g, '<')
.replace(/&gt;/g, '>')
} }
html = html.replace(/&amp;/g, '&').replace(/&lt;/g, '<').replace(/&gt;/g, '>')
this.$set(this.previewList, 0, { this.$set(this.previewList, 0, {
attContent: (this.previewList[idx].attContent + html).substring(0, 600), attContent: (this.previewList[idx].attContent + html).substring(0, 600),
attType: this.ATT_TYPE.TEXT attType: this.ATT_TYPE.TEXT
......
...@@ -117,6 +117,7 @@ export default { ...@@ -117,6 +117,7 @@ export default {
display: inline-block; display: inline-block;
/deep/ { /deep/ {
.el-tag { .el-tag {
margin-right: 10px;
height: 26px; height: 26px;
line-height: 26px; line-height: 26px;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!