From 474cd2b6ab2640a04eaa596247a2b527a4aa1818 Mon Sep 17 00:00:00 2001 From: Kerwin Bryant Date: Fri, 27 May 2022 14:04:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A1=B5=E9=9D=A2=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E6=9D=A1=E4=B8=8D=E9=87=8D=E7=BD=AE=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#158)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/layouts/index.tsx b/src/layouts/index.tsx index 070a9a1..7ed2aaa 100644 --- a/src/layouts/index.tsx +++ b/src/layouts/index.tsx @@ -95,6 +95,7 @@ export default defineComponent({ () => route.path, () => { appendNewRoute(); + document.querySelector(`.${prefix}-layout`).scrollTo({ top: 0, behavior: 'smooth' }); }, );