Commit 0868d3aa by xuyl

修复群发人数为0问题

1 parent 5b533e65
...@@ -392,16 +392,18 @@ export default { ...@@ -392,16 +392,18 @@ export default {
// 提交 // 提交
async handleSubmit() { async handleSubmit() {
const params = this.getBaseInfo() const params = this.getBaseInfo()
await this.$apis.wechatGroup if (this.groupNumber == '0'){
.batchmessagingCustomercount(params) await this.$apis.wechatGroup
.then(res => { .batchmessagingCustomercount(params)
if (res || res == 0) { .then(res => {
this.groupNumber = res if (res || res == 0) {
} this.groupNumber = res
}) }
.catch(err => { })
this.groupNumber = 0 .catch(err => {
}) this.groupNumber = 0
})
}
this.$refs.basicForm.validate(valid => { this.$refs.basicForm.validate(valid => {
if (valid) { if (valid) {
if (this.basicForm.selectType == '1' && !this.taggingList.length) { 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!