Skip to content

Commit 013cf21

Browse files
authored
fix: fixed the issue of abnormal log request (#7338)
Refs #7339
1 parent c648f9b commit 013cf21

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

frontend/src/components/log-file/index.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
<script lang="ts" setup>
2929
import { ReadByLine } from '@/api/modules/files';
30-
import { ref, computed, onMounted, watch, nextTick, reactive } from 'vue';
30+
import { ref, computed, onMounted, onUnmounted, watch, nextTick, reactive } from 'vue';
3131
import { downloadFile } from '@/utils/util';
3232
3333
interface LogProps {
@@ -281,6 +281,11 @@ onMounted(async () => {
281281
}
282282
});
283283
});
284+
285+
onUnmounted(() => {
286+
onCloseLog();
287+
});
288+
284289
defineExpose({ changeTail, onDownload, clearLog });
285290
</script>
286291

0 commit comments

Comments
 (0)