问题 I implemented the code from this post, enabling the scroll to anchor while navigating using the router. But I noticed that on a refresh or manual navigation (by manipulating the URL), the page does not scroll to anchor as expected. I can add this code to all pages, and it is going to work: mounted() { console.log('Location:', location.hash); //returns '#options' console.log('Route:', this.$route.hash); //returns '#options' if (location.hash) this.$nextTick().then(() => this.$scrollTo(location