diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue index 5cf6870726196f86da9ec6785d192607c47d5ba6..0fa3178b753ec545b00af76aa1811dc67bc4314e 100644 --- a/src/components/DictionaryView.vue +++ b/src/components/DictionaryView.vue @@ -486,6 +486,9 @@ export default { if (this.article && this.article.article_id == item.article_id){ this.article_key++ this.replace_history() + if (!this.$route.hash) { + window.scrollTo(0,0) + } }else{ navigate_to_article(this, item.source) @@ -494,15 +497,15 @@ export default { details_click: function(item) { this.article = item.article this.replace_history() + if (!this.$route.hash) { + window.scrollTo(0,0) + } }, return_to_results: function() { this.article = null } }, mounted: function(){ - if (!this.$route.hash) { - window.scrollTo(0,0) - } let self = this