Commit c561dda269a3c62453b56a46e4deee8154b17d8b

Authored by wangjunyi
1 parent 8a68bae0

创建回调函数时,不可带上括号,否则会在调用此语句时,立即执行一次回调函数

web_src/src/components/dialog/recordDownload.vue
@@ -161,7 +161,7 @@ export default { @@ -161,7 +161,7 @@ export default {
161 } 161 }
162 setTimeout( ()=>{ 162 setTimeout( ()=>{
163 if (!this.showDialog) return; 163 if (!this.showDialog) return;
164 - this.getProgressForFile(this.getProgressForFileTimer()) 164 + this.getProgressForFile(this.getProgressForFileTimer)
165 }, 1000) 165 }, 1000)
166 }, 166 },
167 getProgressForFile: function (callback){ 167 getProgressForFile: function (callback){