Skip to content

Commit fc4daf1

Browse files
remove set timeout
1 parent d012be3 commit fc4daf1

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/LoadingComponent.vue

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
registerComponent(){
2727
this.isLoading = true;
2828
this.nbComponents++
29-
this.setTimeout();
3029
},
3130
3231
componentEndLoading(){
@@ -54,14 +53,6 @@
5453
return (this.nbFinished / this.nbComponents) * 100;
5554
},
5655
57-
setTimeout(){
58-
clearTimeout(this.timeout);
59-
this.timeout = setTimeout(() => {
60-
console.log("timeout");
61-
this.nbFinished = this.nbComponents;
62-
}, 2000)
63-
}
64-
6556
},
6657
6758
watch: {

0 commit comments

Comments
 (0)