Commit 4b6216c8 by 匡雅琴

Merge branch 'kuangyq_fix_v2.0.0' of http://192.168.3.233:8090/saas/scrm-micro-m…

…arketing into kuangyq_fix_v2.0.0
2 parents a34f7693 2891828c
...@@ -260,7 +260,7 @@ export default { ...@@ -260,7 +260,7 @@ export default {
}) })
} }
} else { } else {
this.previewList.splice(0) this.previewList.shift(0)
} }
}, },
selectActivity(val) { selectActivity(val) {
...@@ -323,7 +323,7 @@ export default { ...@@ -323,7 +323,7 @@ export default {
} }
} }
}, },
changeInput: utils.debounce(function() { changeInput: utils.debounce(function () {
var allNodes = document.getElementById('editor').childNodes var allNodes = document.getElementById('editor').childNodes
var str = '' var str = ''
allNodes.forEach(item => { allNodes.forEach(item => {
...@@ -341,7 +341,7 @@ export default { ...@@ -341,7 +341,7 @@ export default {
this.eventBus.$emit('update', this.previewList) this.eventBus.$emit('update', this.previewList)
const obj = val.find(item => item.attType == 1) const obj = val.find(item => item.attType == 1)
let attContent = obj.attContent.replaceAll('[@昵称]', '<wise id="1">@昵称</wise>') let attContent = obj.attContent.replaceAll('[@昵称]', '<wise id="1">@昵称</wise>')
const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function(res) { const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function (res) {
let word = res.replace(/\[|\]/gi, '') let word = res.replace(/\[|\]/gi, '')
const list = emoji.flat(Infinity) const list = emoji.flat(Infinity)
let index = parseInt(list.indexOf(word)) + 1 let index = parseInt(list.indexOf(word)) + 1
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!