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

Refs #7339
pull/7342/head
igophper 2024-12-12 10:36:41 +08:00 committed by GitHub
parent c648f9b14a
commit 013cf21863
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -27,7 +27,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { ReadByLine } from '@/api/modules/files'; 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'; import { downloadFile } from '@/utils/util';
interface LogProps { interface LogProps {
@ -281,6 +281,11 @@ onMounted(async () => {
} }
}); });
}); });
onUnmounted(() => {
onCloseLog();
});
defineExpose({ changeTail, onDownload, clearLog }); defineExpose({ changeTail, onDownload, clearLog });
</script> </script>