fix: Fix infinite log reading issue (#11603)

This commit is contained in:
CityFun
2026-01-09 11:14:07 +08:00
committed by GitHub
parent b279ee6b82
commit 79f1b1458b
@@ -151,7 +151,6 @@ const containerHeight = ref(500);
const scrollTop = ref(0);
const lastScrollTop = ref(0);
const totalLines = ref(0);
const stopReading = ref(false);
const totalPages = ref(0);
let resizeObserver: ResizeObserver | null = null;
const isEndOfFile = ref(false);
@@ -387,10 +386,6 @@ const getContent = async (pre: boolean) => {
};
const onCloseLog = async () => {
if (stopReading.value) {
return;
}
stopReading.value = true;
tailLog.value = false;
if (timer) {
clearInterval(Number(timer));