From 89cd9f40817e3648fc9c443760d7e148604e0587 Mon Sep 17 00:00:00 2001 From: vandvassily Date: Wed, 1 Jul 2020 16:08:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8A=E4=BC=A0=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E8=BF=9B=E5=BA=A6=E8=AE=A1=E7=AE=97bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/uploader/upload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uploader/upload.js b/src/uploader/upload.js index 4cfe212..2efd4da 100644 --- a/src/uploader/upload.js +++ b/src/uploader/upload.js @@ -48,7 +48,7 @@ export default function upload(options) { xhr.upload.addEventListener('progress', function (evt) { if(evt.total == 0) return; - const percent = Math.ceil(evt.loaded / evt.total) * 100; + const percent = Math.ceil(evt.loaded / evt.total * 100); onProgress(file, percent); }, false);