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