diff --git a/webui/src/pages/index/log.vue b/webui/src/pages/index/log.vue index e50b6a3f..155777b3 100644 --- a/webui/src/pages/index/log.vue +++ b/webui/src/pages/index/log.vue @@ -49,11 +49,15 @@ function backToBottom() { onActivated(() => { onUpdate(); - watchOnce(log, () => { - nextTick(() => { - backToBottom(); + if (log.value) { + backToBottom(); + } else { + watchOnce(log, () => { + nextTick(() => { + backToBottom(); + }); }); - }); + } }); onDeactivated(() => {