diff --git a/src/components/Autocomplete.vue b/src/components/Autocomplete.vue index 5ac52700c0d9c64bc6a70439a04ac66610a31ece..23deecf60e421172565981e4f17a9aa0573507ac 100644 --- a/src/components/Autocomplete.vue +++ b/src/components/Autocomplete.vue @@ -202,8 +202,7 @@ } }, mounted: function() { - if (! this.$route.hash) { - window.scrollTo(0,0) + if (!this.$route.hash) { if(!this.$store.state.noMouse && this.$vuetify.breakpoint.mdAndUp) { this.$refs.autocomplete.$refs.input.focus() } diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue index 5b3147ebb1ceb965639924a07c495bba5c18d960..5cf6870726196f86da9ec6785d192607c47d5ba6 100644 --- a/src/components/DictionaryView.vue +++ b/src/components/DictionaryView.vue @@ -500,6 +500,11 @@ export default { } }, mounted: function(){ + if (!this.$route.hash) { + window.scrollTo(0,0) + } + + let self = this self.lang = self.$route.params.lang || this.$store.state.defaultDict if (self.$route.query.pos) {