Añadiendo todo el proyecto
This commit is contained in:
20
pages/index.vue
Normal file
20
pages/index.vue
Normal file
@@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<div>
|
||||
<h1>{{ lang }}</h1>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
lang: '',
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
const langcode = this.$store.getters['langcode'];
|
||||
this.lang = langcode;
|
||||
|
||||
this.$router.replace(`/${langcode}`);
|
||||
},
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user