Commit 95fd94cc authored by zhengke's avatar zhengke

优化logo 后缀名

parent 9b6da6e9
......@@ -394,7 +394,7 @@
}
const insertImageElement = async (files: FileList,index:number) => {
let fileType = files[0].name.split('.')
fileName.value = fileType[0]+".png"
fileName.value = fileType[0]+`${fileType[1]?fileType[1]:'.png'}`
currentData.value = index
pic.value = URL.createObjectURL(files[0])
opt.width = acquiesceIMG.value[index].width
......
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