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' }); }, );