소스 검색

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

wangjunyi 2 년 전
부모
커밋
c561dda269
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      web_src/src/components/dialog/recordDownload.vue

+ 1 - 1
web_src/src/components/dialog/recordDownload.vue

@@ -161,7 +161,7 @@ export default {
           }
           setTimeout( ()=>{
             if (!this.showDialog) return;
-            this.getProgressForFile(this.getProgressForFileTimer())
+            this.getProgressForFile(this.getProgressForFileTimer)
           }, 1000)
         },
         getProgressForFile: function (callback){