odc.xiaohui
2023-04-14 15fccc0a1fedf1244516b108a4dc8a8acdfa3c7c
src/views/cause/Group.vue
@@ -182,6 +182,7 @@
                }
              }
              this.messageList = res
              this.sendBtn=false
            })
            getAllNotice(data.id).then(res => this.groupAnList = res)
@@ -234,12 +235,33 @@
          }
        },
        seedMessage() {
          seed(this.field103, this.groupId).then(res => {
          seed(this.field103, this.groupId).then(async res => {
                this.$message({
                  message: '回复成功',
                  type: 'success'
                });
                getAllMessage(this.groupId).then(res => this.messageList = res)
                await getAllMessage(this.groupId).then(res => {
                  res.map(item=>{
                    if (item.pic === '' || item.pic === null){
                    }else {
                      item.pic='/minio/img/'+item.pic
                    }
                  })
                  this.messageList = res
                  // console.log(res)
                })
                // for (let item of this.messageList) {
                //   if (item.pic === '' || item.pic === null) {
                //   } else {
                //     getImgUrl(item.pic).then(res => {
                //       item.pic = res
                //     })
                //   }
                // }
                this.field103 = '';
              }
          )