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 {
},
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){
......
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