Commit 0868d3aa by xuyl

修复群发人数为0问题

1 parent 5b533e65
......@@ -392,16 +392,18 @@ export default {
// 提交
async handleSubmit() {
const params = this.getBaseInfo()
await this.$apis.wechatGroup
.batchmessagingCustomercount(params)
.then(res => {
if (res || res == 0) {
this.groupNumber = res
}
})
.catch(err => {
this.groupNumber = 0
})
if (this.groupNumber == '0'){
await this.$apis.wechatGroup
.batchmessagingCustomercount(params)
.then(res => {
if (res || res == 0) {
this.groupNumber = res
}
})
.catch(err => {
this.groupNumber = 0
})
}
this.$refs.basicForm.validate(valid => {
if (valid) {
if (this.basicForm.selectType == '1' && !this.taggingList.length) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!