Преглед изворни кода

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

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){