Merge branch 'master' of https://codeup.aliyun.com/bsdtec/biz-pc-cloud
This commit is contained in:
commit
1f386f14fd
1 file changed
+4
@@ -215,6 +215,8 @@ const genImageUpload = async (): Promise<string | void> => {
|
||||
backgroundColor: "#ffffff",
|
||||
pixelRatio: 6,
|
||||
})
|
||||
console.log("blob", blob)
|
||||
|
||||
if (blob) {
|
||||
try {
|
||||
loading.value = true
|
||||
@@ -233,6 +235,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