Elementui tabs component, how to make the page display from the top when switching tabs?

The

tab uses the tabs component of elementui. When switching tabs, the newly switched page always maintains the scrolling position of the previous page, as shown in figure

.

when I slipped halfway through the Health profile, I switched to symptom Review

clipboard.png

"" :

clipboard.png

""

clipboard.png

the problem that the page does not return to the top when many jump routes are found on the Internet, but I only switch tabs and do not jump routes. Please advise

Apr.06,2021

Don't think so complicated. Don't components provide you with tab-click events? scroll back to the top directly in the callback window.scrollTo (0,0);

Menu