diff --git a/public/iconify/streamline.json b/public/iconify/streamline.json index 0aeb1c0..1af0001 100644 --- a/public/iconify/streamline.json +++ b/public/iconify/streamline.json @@ -12,6 +12,13 @@ "interface-user-multiple-close-geometric-human-multiple-person-up-user": { "body": "", "hidden": true + }, + "interface-arrows-vertical-scroll-point-move-scroll-vertical": { + "body": "", + "hidden": true + }, + "synchronize-disable": { + "body": "" } } } diff --git a/src/components/common/log-drawer.vue b/src/components/common/log-drawer.vue index 98c9ad2..f6af1db 100644 --- a/src/components/common/log-drawer.vue +++ b/src/components/common/log-drawer.vue @@ -110,10 +110,10 @@ async function getLogList() { .sort((a, b) => Number.parseInt(a.time_stamp, 10) - Number.parseInt(b.time_stamp, 10)) .forEach((item, index) => (item.index = index)); } + nextTick(() => { + if (isAutoScroll.value) virtualListInst.value?.scrollTo({ position: 'bottom', debounce: true }); + }); if (!finished.value && syncTime.value !== 0) { - nextTick(() => { - if (isAutoScroll.value) virtualListInst.value?.scrollTo({ position: 'bottom', debounce: true }); - }); clearTimeout(interval.value); interval.value = setTimeout(getLogList, syncTime.value * 1000); } @@ -352,10 +352,14 @@ const SnailLogComponent = defineComponent({
- - - - + + + + - + @@ -380,14 +388,10 @@ const SnailLogComponent = defineComponent({