From 12571e0db1b5014e707010e4ab2514ad22ee6fc1 Mon Sep 17 00:00:00 2001 From: wenyanjun <997745354@qq.com> Date: Wed, 14 Sep 2022 14:32:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8B=E8=BD=BD=E5=BD=95?= =?UTF-8?q?=E5=83=8F=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_src/src/components/dialog/recordDownload.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web_src/src/components/dialog/recordDownload.vue b/web_src/src/components/dialog/recordDownload.vue index b718a8bd..df3880c4 100644 --- a/web_src/src/components/dialog/recordDownload.vue +++ b/web_src/src/components/dialog/recordDownload.vue @@ -89,7 +89,7 @@ export default { if (parseFloat(res.data.progress) == 1) { this.percentage = 100; }else { - this.percentage = (res.data.progress*100).toFixed(1); + this.percentage = (res.data.data.progress*100).toFixed(1); } if (callback)callback(); } @@ -175,6 +175,10 @@ export default { }).then((res) => { console.log(res) if (res.data.code === 0) { + if (res.data.data.length === 0){ + this.percentage = 0 + return + } this.percentage = parseFloat(res.data.data.percentage)*100 if (res.data.data[0].percentage === '1') { this.getProgressForFileRun = false;