Commit 8d91a5c3 authored by 罗超's avatar 罗超

格式化进度

parent fe9f1074
......@@ -83,7 +83,7 @@ const handlePreview = ()=> {
xhr.open('GET', url, true)
xhr.responseType = 'blob'
xhr.onprogress = (e:any)=>{
progress.value = (e.loaded / e.total) * 100
progress.value = parseInt(((e.loaded / e.total) * 100).toString())
console.log(e)
}
xhr.onload = ()=>{
......
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