From 72798304a900697152dc0294957a5ea7decfc4f4 Mon Sep 17 00:00:00 2001 From: Rewrite0 Date: Fri, 8 Mar 2024 11:45:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=87=8D=E5=9B=9Elog=E9=A1=B5log?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E7=BD=AE=E5=BA=95=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webui/src/pages/index/log.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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(() => {