perf(UserDetail): cambio en la extracción del rol de usuario

parent 1a8c3ad3
Showing with 1 additions and 3 deletions
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</div> </div>
<div class="col-12"> <div class="col-12">
<p class="mb-1 text-muted"><strong>Rol</strong></p> <p class="mb-1 text-muted"><strong>Rol</strong></p>
<p class="fw-bold">{{ authStore.user?.role }}</p> <p class="fw-bold">{{ userStore.user?.role }}</p>
</div> </div>
</div> </div>
...@@ -98,12 +98,10 @@ ...@@ -98,12 +98,10 @@
</template> </template>
<script setup> <script setup>
import { useAuthStore } from '@/stores/authStore';
import { useUserStore } from '@/stores/userStore'; import { useUserStore } from '@/stores/userStore';
import { onMounted, ref } from 'vue'; import { onMounted, ref } from 'vue';
const userStore = useUserStore(); const userStore = useUserStore();
const authStore = useAuthStore();
const mode = ref('view'); const mode = ref('view');
// Datos del usuario // Datos del usuario
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment