wenyanjun
2022-09-14 12571e0db1b5014e707010e4ab2514ad22ee6fc1
修复下载录像失败问题
1个文件已修改
6 ■■■■ 已修改文件
web_src/src/components/dialog/recordDownload.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web_src/src/components/dialog/recordDownload.vue
@@ -89,7 +89,7 @@
                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 @@
          }).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;