mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-22 16:00:51 +00:00
fix: Fix infinite log reading issue (#11603)
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user