爆灯最新
This commit is contained in:
parent
56bcf7c94a
commit
69a86ad738
|
|
@ -647,11 +647,9 @@
|
|||
}
|
||||
_this.messages.push(tempMessage)
|
||||
_this.sendingMessages.add(tempId)
|
||||
|
||||
_this.$nextTick(() => {
|
||||
_this.scrollToBottom()
|
||||
})
|
||||
|
||||
wx.uploadFile({
|
||||
url: 'https://up-z2.qiniup.com',
|
||||
name: 'file',
|
||||
|
|
@ -664,13 +662,11 @@
|
|||
console.log(res, 'resres')
|
||||
let str = JSON.parse(res.data)
|
||||
const imageUrl = 'https://api.ccttiot.com/' + str.key
|
||||
|
||||
// 更新消息内容为真实URL
|
||||
const index = _this.messages.findIndex(msg => msg.tempId === tempId)
|
||||
if (index !== -1) {
|
||||
_this.messages[index].content = imageUrl
|
||||
}
|
||||
|
||||
// 发送消息到服务器
|
||||
let data = {
|
||||
teamId: _this.teamId,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user