This commit is contained in:
1 parent
75a07d9094
commit
e6f2fc27e8
1 file changed
+4
@@ -240,6 +240,8 @@ const genImageUpload = async (): Promise<string | void> => {
|
|||||||
backgroundColor: "#ffffff",
|
backgroundColor: "#ffffff",
|
||||||
pixelRatio: 6,
|
pixelRatio: 6,
|
||||||
})
|
})
|
||||||
|
console.log("blob", blob)
|
||||||
|
|
||||||
if (blob) {
|
if (blob) {
|
||||||
try {
|
try {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
@@ -258,6 +260,8 @@ const genImageUpload = async (): Promise<string | void> => {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
console.log("data.url", data.url)
|
||||||
|
|
||||||
if (code == 0) return data.url
|
if (code == 0) return data.url
|
||||||
useMessage().error(data.msg || "上传失败")
|
useMessage().error(data.msg || "上传失败")
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in new issue
Block a user