fix: 重回log页log没有置底的问题

This commit is contained in:
Rewrite0
2024-03-08 11:45:33 +08:00
parent 13cca7915e
commit 72798304a9

View File

@@ -49,11 +49,15 @@ function backToBottom() {
onActivated(() => {
onUpdate();
watchOnce(log, () => {
nextTick(() => {
backToBottom();
if (log.value) {
backToBottom();
} else {
watchOnce(log, () => {
nextTick(() => {
backToBottom();
});
});
});
}
});
onDeactivated(() => {