修复输入内容换行引起的一些问题、修复IE浏览器下报错的问题

This commit is contained in:
fan
2021-01-29 21:03:47 +08:00
parent 177d610b68
commit abf9abac25
15 changed files with 128 additions and 112 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
import {clearHtml } from 'utils';
export default {
file(message) {
return "[文件]";
@@ -6,7 +7,7 @@ export default {
return "[图片]";
},
text(message) {
return this.replaceEmojiName(message.content);
return this.replaceEmojiName(clearHtml(message.content));
},
event(message){
return '[通知]';