修复国标录像下载

This commit is contained in:
648540858
2024-09-10 16:50:54 +08:00
parent 7cc4c9d14a
commit 3140672e63
13 changed files with 163 additions and 112 deletions

View File

@@ -59,13 +59,12 @@ export default {
if (!this.getProgressRun) {
return;
}
if (this.percentage == 100 ) {
if (this.downloadFile) {
return;
}
setTimeout( ()=>{
if (!this.showDialog) return;
this.getProgress(this.getProgressTimer())
this.getProgress(this.getProgressTimer)
}, 5000)
},
getProgress: function (callback){
@@ -75,7 +74,7 @@ export default {
}).then((res)=> {
if (res.data.code === 0) {
this.streamInfo = res.data.data;
if (parseFloat(res.data.progress) == 1) {
if (parseFloat(res.data.progress) === 1) {
this.percentage = 100;
}else {
this.percentage = (parseFloat(res.data.data.progress)*100).toFixed(1);