In the vue project, using anchor positioning will conflict with the router's rules. The performance in the project is that the first time you click the url changed, but it did not jump to the anchor position. You will jump to the click again. Therefore, defining a method in the vue project does not apply to anchor positioning:
scrollToSection() { let section = ('section') if (section) { () } }
Just bind the click event in the html tag
The alternative method of anchor point positioning in the above vue project is all the content I share with you. I hope you can give you a reference and I hope you can support me more.