Skip to content
Snippets Groups Projects
Commit 07f2dc1e authored by Henrik Askjer's avatar Henrik Askjer
Browse files

Fix updatae_lang bug

parent 7cd7b009
No related branches found
No related tags found
No related merge requests found
...@@ -259,20 +259,20 @@ export default { ...@@ -259,20 +259,20 @@ export default {
}, },
update_lang_form: function (lang) { update_lang_form: function (lang) {
this.lang = lang this.lang = lang
let name = "" let name = null
let query = "" let query = null
if(this.$route.name == 'word') { if(this.$route.name == 'word') {
name = "w" name = "w"
query = this.$route.params.word query = this.$route.params.word
this.$router.push(`/${this.lang}/${name}/${query}`)
navigate_to_query(this, query)
} }
else if (this.$route.name == 'search') { else if (this.$route.name == 'search') {
name = "search" name = "search"
query = this.$route.params.query 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) { article_link_click: function(item) {
if (this.article && this.article.article_id == item.article_id){ if (this.article && this.article.article_id == item.article_id){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment