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);