From b35a00db800072dab687ec489431c90d09d8878a Mon Sep 17 00:00:00 2001 From: marvzhang Date: Sun, 26 Jul 2020 17:54:48 +0800 Subject: [PATCH] fixed https://github.com/crawlab-team/crawlab/issues/810 --- frontend/src/views/task/TaskDetail.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/task/TaskDetail.vue b/frontend/src/views/task/TaskDetail.vue index af5346f2..06b861ae 100644 --- a/frontend/src/views/task/TaskDetail.vue +++ b/frontend/src/views/task/TaskDetail.vue @@ -213,7 +213,7 @@ return ['pending', 'running'].includes(this.taskForm.status) } }, - async created() { + async mounted() { await this.$store.dispatch('task/getTaskData', this.$route.params.id) this.isLogAutoFetch = !!this.isRunning @@ -229,8 +229,7 @@ await this.getTaskLog() } }, 5000) - }, - mounted() { + if (!this.$utils.tour.isFinishedTour('task-detail')) { this.$utils.tour.startTour(this, 'task-detail') }