diff --git a/frontend/src/components/log/file/index.vue b/frontend/src/components/log/file/index.vue index 8679a09fa..37d57e55a 100644 --- a/frontend/src/components/log/file/index.vue +++ b/frontend/src/components/log/file/index.vue @@ -106,7 +106,7 @@ const stopSignals = [ 'image push successful!', '[TASK-END]', ]; -const emit = defineEmits(['update:loading', 'update:hasContent', 'update:isReading']); +const emit = defineEmits(['update:loading', 'update:hasContent', 'update:isReading', 'stop-reading']); const tailLog = ref(true); const loading = ref(props.loading); const readReq = reactive({ @@ -298,6 +298,7 @@ const onCloseLog = async () => { timer = null; } timer = null; + emit('stop-reading'); isLoading.value = false; emit('update:isReading', false); bus.emit('refreshTask', true); diff --git a/frontend/src/views/cronjob/cronjob/record/index.vue b/frontend/src/views/cronjob/cronjob/record/index.vue index 357d240ed..850df9d79 100644 --- a/frontend/src/views/cronjob/cronjob/record/index.vue +++ b/frontend/src/views/cronjob/cronjob/record/index.vue @@ -63,7 +63,7 @@