修复了chat中图片显示的相关问题
This commit is contained in:
1 parent
ba43ad2bbc
commit
8d08392cad
3 files changed
+12
-3
No files matched your search
@@ -240,9 +240,8 @@ watch(() => props.messages, async () => {
|
||||
if (!imgDownloadingQueue.includes(msg.msg)) {
|
||||
imgDownloadingQueue.push(msg.msg)
|
||||
const imgData = await downloadImage(msg.msg)
|
||||
const url = URL.createObjectURL(new Blob([imgData]))
|
||||
const url = URL.createObjectURL(new Blob([imgData], { type: "image/png" }))
|
||||
imgUrlCache.value[msg.msg] = url
|
||||
// console.log(new Blob(imgData), imgData, url, imgUrlCache.value, imgDownloadingQueue)
|
||||
}
|
||||
} else if (msg.type1 === 'file') {
|
||||
if (!getFileInfoQueue.includes(msg.msg)) {
|
||||
|
||||
Reference in new issue
Block a user