fix: fixed the issue of abnormal log request (#7338)

Refs #7339
This commit is contained in:
igophper
2024-12-12 10:36:41 +08:00
committed by GitHub
parent c648f9b14a
commit 013cf21863
+6 -1
View File
@@ -27,7 +27,7 @@
<script lang="ts" setup>
import { ReadByLine } from '@/api/modules/files';
import { ref, computed, onMounted, watch, nextTick, reactive } from 'vue';
import { ref, computed, onMounted, onUnmounted, watch, nextTick, reactive } from 'vue';
import { downloadFile } from '@/utils/util';
interface LogProps {
@@ -281,6 +281,11 @@ onMounted(async () => {
}
});
});
onUnmounted(() => {
onCloseLog();
});
defineExpose({ changeTail, onDownload, clearLog });
</script>