mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-23 03:22:32 +08:00
修复页面滚动条不重置的问题 (#158)
This commit is contained in:
parent
f7e50cd10a
commit
474cd2b6ab
|
@ -95,6 +95,7 @@ export default defineComponent({
|
|||
() => route.path,
|
||||
() => {
|
||||
appendNewRoute();
|
||||
document.querySelector(`.${prefix}-layout`).scrollTo({ top: 0, behavior: 'smooth' });
|
||||
},
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user