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",
|
||||
pixelRatio: 6,
|
||||
})
|
||||
console.log("blob", blob)
|
||||
|
||||
if (blob) {
|
||||
try {
|
||||
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
|
||||
useMessage().error(data.msg || "上传失败")
|
||||
} catch (error) {
|
||||
|
||||
Reference in new issue
Block a user