Commit 1a26d2ae by 前端

commit

1 parent 9f5b81a7
...@@ -378,7 +378,7 @@ export default { ...@@ -378,7 +378,7 @@ export default {
const attachmentList = previewList.map(item => { const attachmentList = previewList.map(item => {
if (item.attType == 1) { if (item.attType == 1) {
item.attContent = item.attContent.replace(/(\[@昵称\]|\[#兑换码\])/g, '$1') item.attContent = item.attContent.replace(/\[(@昵称|#兑换码)\]/g, '$1')
item.attContent = item.attContent.replace(/(@昵称|#兑换码)/g, '[$1]') item.attContent = item.attContent.replace(/(@昵称|#兑换码)/g, '[$1]')
if (item.attContent.match(/\[#兑换码\]/g)&&item.attContent.match(/\[#兑换码\]/g).length > 10) { if (item.attContent.match(/\[#兑换码\]/g)&&item.attContent.match(/\[#兑换码\]/g).length > 10) {
this.$message({ this.$message({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!