爆灯最新

This commit is contained in:
吴鹏 2025-12-20 14:30:55 +08:00
parent 56bcf7c94a
commit 69a86ad738

View File

@ -647,11 +647,9 @@
} }
_this.messages.push(tempMessage) _this.messages.push(tempMessage)
_this.sendingMessages.add(tempId) _this.sendingMessages.add(tempId)
_this.$nextTick(() => { _this.$nextTick(() => {
_this.scrollToBottom() _this.scrollToBottom()
}) })
wx.uploadFile({ wx.uploadFile({
url: 'https://up-z2.qiniup.com', url: 'https://up-z2.qiniup.com',
name: 'file', name: 'file',
@ -664,13 +662,11 @@
console.log(res, 'resres') console.log(res, 'resres')
let str = JSON.parse(res.data) let str = JSON.parse(res.data)
const imageUrl = 'https://api.ccttiot.com/' + str.key const imageUrl = 'https://api.ccttiot.com/' + str.key
// URL // URL
const index = _this.messages.findIndex(msg => msg.tempId === tempId) const index = _this.messages.findIndex(msg => msg.tempId === tempId)
if (index !== -1) { if (index !== -1) {
_this.messages[index].content = imageUrl _this.messages[index].content = imageUrl
} }
// //
let data = { let data = {
teamId: _this.teamId, teamId: _this.teamId,