Forráskód Böngészése

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

wangjunyi 2 éve
szülő
commit
c561dda269
1 módosított fájl, 1 hozzáadás és 1 törlés
  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){