31 lines
586 B
Vue
31 lines
586 B
Vue
<script>
|
|
import { mapMutations, mapState } from "vuex";
|
|
|
|
export default {
|
|
name: "ComisionesNavBarBrand",
|
|
computed: {
|
|
...mapState('ui', ["burger_activa"])
|
|
},
|
|
methods: {
|
|
...mapMutations('ui', ["toggleBurger"]),
|
|
},
|
|
data() {
|
|
return {
|
|
nombre: '',
|
|
}
|
|
},
|
|
async mounted() {
|
|
const response = await axios.get('/user');
|
|
this.nombre = response.data.user;
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<div class="navbar-item hide-below-1024">
|
|
<p>{{ nombre }}</p>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
</style>
|