add header and lang switcher
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<langBar/>
|
||||
<site-header/>
|
||||
<nuxt/>
|
||||
</div>
|
||||
@@ -8,6 +7,7 @@
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
beforeCreate() {
|
||||
if (this.$route.params.lang === 'fa') {
|
||||
@@ -15,6 +15,11 @@
|
||||
} else if (this.$route.params.lang === 'en') {
|
||||
$('html').attr({lang: 'en'})
|
||||
}
|
||||
}
|
||||
},
|
||||
head(){
|
||||
return {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user