Commit c561dda269a3c62453b56a46e4deee8154b17d8b
1 parent
8a68bae0
创建回调函数时,不可带上括号,否则会在调用此语句时,立即执行一次回调函数
Showing
1 changed file
with
1 additions
and
1 deletions
web_src/src/components/dialog/recordDownload.vue
| ... | ... | @@ -161,7 +161,7 @@ export default { |
| 161 | 161 | } |
| 162 | 162 | setTimeout( ()=>{ |
| 163 | 163 | if (!this.showDialog) return; |
| 164 | - this.getProgressForFile(this.getProgressForFileTimer()) | |
| 164 | + this.getProgressForFile(this.getProgressForFileTimer) | |
| 165 | 165 | }, 1000) |
| 166 | 166 | }, |
| 167 | 167 | getProgressForFile: function (callback){ | ... | ... |