Anchor positioning alternative to the VUE project

In the Vue project, use anchor positioning and Router’s rule conflict, the performance in the project is the first click of the URL to change, but no jump to the anchor position, and click again to jump. So define a method in the Vue project does not apply to anchor positioning:

 scrolltosection () {let section = document.GtelementById ('section) f (section) {section .Scrollintoview ()}   
The binding Click event in the HTML tag can be
The anchor positioning alternative mode in this Vue project is small. I have to share it with all the contents, I hope I can give you a reference, I also hope that you will support Tumi Clouds.

© Copyright Notice
Just support it if you like
comment Grab the couch

Please log in to comment