From bda2b54ce9479487413d9625213d41a26a2a978d Mon Sep 17 00:00:00 2001 From: tim Date: Sun, 10 Aug 2025 12:30:09 +0800 Subject: [PATCH] fix: magic delay --- frontend_nuxt/components/CommentItem.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend_nuxt/components/CommentItem.vue b/frontend_nuxt/components/CommentItem.vue index 2d2f660ec..e154b141d 100644 --- a/frontend_nuxt/components/CommentItem.vue +++ b/frontend_nuxt/components/CommentItem.vue @@ -120,9 +120,9 @@ const CommentItem = { const toggleEditor = () => { showEditor.value = !showEditor.value if (showEditor.value) { - nextTick(() => { + setTimeout(() => { editorWrapper.value?.scrollIntoView({ behavior: 'smooth', block: 'nearest' }) - }) + }, 100) } }