Commit b2df89c1 by 胡悦

修复群发bug

1 parent 17606c52
......@@ -386,6 +386,7 @@ export default {
}
} else {
this.attachmentText = '请输入群发内容'
return
}
this.$refs.groupForm.validate(v => {
if (v) {
......@@ -405,7 +406,7 @@ export default {
if (item.attType == 1) {
const list = emoji.flat(Infinity)
const cutImg = item.attContent.replaceAll('<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/', '')
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function(str) {
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function (str) {
let s = list[parseInt(str.split('.')[0]) - 1]
return `[${s}]`
})
......@@ -586,9 +587,7 @@ export default {
const date = new Date(v).getTime()
if (date < Date.now()) {
this.timeOptions = {
selectableRange: `${dayjs()
.add(1, 'm')
.format('HH:mm')}:00 - 23:59:59`
selectableRange: `${dayjs().add(1, 'm').format('HH:mm')}:00 - 23:59:59`
}
} else {
this.timeOptions = {
......
......@@ -288,6 +288,7 @@ export default {
}
} else {
this.attachmentText = '请输入群发内容'
return
}
this.$refs.groupForm.validate(v => {
if (v) {
......@@ -301,7 +302,7 @@ export default {
if (item.attType == 1) {
const list = emoji.flat(Infinity)
const cutImg = item.attContent.replaceAll('<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/', '')
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function(str) {
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function (str) {
let s = list[parseInt(str.split('.')[0]) - 1]
return `[${s}]`
})
......@@ -353,9 +354,7 @@ export default {
const date = new Date(v).getTime()
if (date < Date.now()) {
this.timeOptions = {
selectableRange: `${dayjs()
.add(1, 'm')
.format('HH:mm')}:00 - 23:59:59`
selectableRange: `${dayjs().add(1, 'm').format('HH:mm')}:00 - 23:59:59`
}
} else {
this.timeOptions = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!