创建回调函数时,不可带上括号,否则会在调用此语句时,立即执行一次回调函数
parent
8a68bae0bb
commit
c561dda269
|
@ -161,7 +161,7 @@ export default {
|
||||||
}
|
}
|
||||||
setTimeout( ()=>{
|
setTimeout( ()=>{
|
||||||
if (!this.showDialog) return;
|
if (!this.showDialog) return;
|
||||||
this.getProgressForFile(this.getProgressForFileTimer())
|
this.getProgressForFile(this.getProgressForFileTimer)
|
||||||
}, 1000)
|
}, 1000)
|
||||||
},
|
},
|
||||||
getProgressForFile: function (callback){
|
getProgressForFile: function (callback){
|
||||||
|
|
Loading…
Reference in New Issue