1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 00:09:16 +08:00

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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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>