improve: 移动端表情展示

This commit is contained in:
From-wh 2023-03-03 17:46:14 +08:00
parent 9059fdc7b0
commit 54f5d90403
2 changed files with 2 additions and 2 deletions

View File

@ -416,7 +416,7 @@
},
// 聊天表情转换
replace_em(str) {
str = str.replace(/\[em-([\s\S]*)\]/g, "<span class='em em-$1' style='background-image:url(" + this
str = str.replace(/\[([^\[\]]+)\]/g, "<span class='em $1' style='background-image:url(" + this
.httpUrl + ")'></span>");
return str;
},

View File

@ -320,7 +320,7 @@
})
},
replace_em(str) {
str = str.replace(/\[em-([a-z_]*)\]/g, "<span class='em em-$1'/></span>");
str = str.replace(/\[([^\[\]]+)\]/g, "<span class='em $1'/></span>");
return str;
},
goChat(id) {