Does the vue route switch show the bottom of the component rather than the top?

problem description

two routes, the head is the same, and the body is switched according to router-view. When I scroll to the bottom and click the button to jump to the next route, it displays the bottom of the next page, and I have to scroll back to the top to operate.

the environmental background of the problems and what methods you have tried

I forced to reset scroll to 0, which is feasible, but I"m not looking for a solution. I want to know if it"s a layout problem, or if I opened vue? by mistake

.

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Apr.01,2021

ide/advanced/scroll-behavior.html" rel=" nofollow noreferrer "> vue Router scrolling behavior

Menu