fix 插入图片

This commit is contained in:
赵霄
2023-09-17 19:16:38 +08:00
parent 50e199c43c
commit 95a5029010
4 changed files with 36 additions and 31 deletions
+2 -2
View File
@@ -567,9 +567,9 @@ export default {
}).then(res => {
this.loading = false
console.log(res)
this.imageUrl = this.staticFilePath + '?path=' + res.result.url
this.imageUrl = this.downloadFilePath + '?path=' + res.result.url
const img = new Image()
img.src = this.staticFilePath + '?path=' + res.result.url
img.src = this.downloadFilePath + '?path=' + res.result.url
if (img.complete) {
this.imgOrigin = {
width: img.width,