Commit 9813887b authored by 罗超's avatar 罗超

修复文件上传

parent e042c458
......@@ -298,13 +298,11 @@ const uploadImageHandler = async ()=>{
let name = new Date().getTime()+".png"
const file = dataURLtoFile(item.src, name)
let url = await AliyunUpload.UploadAsync(file,`pptist/desgin/${name}`)
url.then(res=>{
if(res) {
item.src = res
const props = { src: res }
if(url != ''){
item.src = url
const props = { src: url }
slidesStore.updateElement({ id: item.id, props, slideId:slide.id })
}
})
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment