From 1e7b59e6b02f0e39b812f4c566b150dca253f764 Mon Sep 17 00:00:00 2001 From: jiwangyihao Date: Tue, 3 Jun 2025 00:54:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=A8=E7=BB=84=E4=BB=B6=E6=8C=82?= =?UTF-8?q?=E8=BD=BD=E6=97=B6=E8=87=AA=E5=8A=A8=E6=BB=9A=E5=8A=A8=E5=88=B0?= =?UTF-8?q?=E9=A1=B6=E9=83=A8=E4=BB=A5=E6=94=B9=E5=96=84=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sylvanysc --- app.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app.vue b/app.vue index 16055c2..a7d69b4 100644 --- a/app.vue +++ b/app.vue @@ -48,6 +48,15 @@ onMounted(() => { nextTick(() => { mounted.value = true; }); + + watchEffect(() => { + if (path.value) { + scrollPanel.value?.$el.firstChild.firstChild.scrollTo({ + top: 0, + behavior: "instant", + }); + } + }); }); const qrWidth = ref(0);