From 07f2dc1e2700a1e1b19315ea82ab720cd569f1f0 Mon Sep 17 00:00:00 2001 From: Henrik Askjer <henrik.askjer@uib.no> Date: Wed, 29 Sep 2021 10:45:02 +0200 Subject: [PATCH] Fix updatae_lang bug --- src/components/DictionaryView.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue index 22eb0003..18b7bcfa 100644 --- a/src/components/DictionaryView.vue +++ b/src/components/DictionaryView.vue @@ -259,20 +259,20 @@ export default { }, update_lang_form: function (lang) { this.lang = lang - let name = "" - let query = "" + let name = null + let query = null if(this.$route.name == 'word') { name = "w" query = this.$route.params.word + this.$router.push(`/${this.lang}/${name}/${query}`) + navigate_to_query(this, query) } else if (this.$route.name == 'search') { name = "search" query = this.$route.params.query + this.$router.push(`/${this.lang}/${name}/${query}`) + navigate_to_query(this, query) } - let route = `/${this.lang}/${name}/${query}` - navigate_to_query(this, query) - this.$router.push(route) - }, article_link_click: function(item) { if (this.article && this.article.article_id == item.article_id){ -- GitLab