We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd0d7f0 commit f8c7e94Copy full SHA for f8c7e94
resources/js/screens/jobs/item.vue
@@ -45,6 +45,7 @@
45
},
46
47
mounted() {
48
+ this.fetchData();
49
this.autoRefreshData();
50
51
@@ -59,12 +60,11 @@
59
60
61
62
methods: {
- autoRefreshData() {
63
+ async autoRefreshData() {
64
setTimeout(async () => {
- await this.fetchData();
65
-
66
if (this.job.status === 'Pending' || this.job.status === 'Running') {
67
- this.autoRefreshData();
+ await this.fetchData();
+ await this.autoRefreshData();
68
}
69
}, 1000);
70
0 commit comments