feat(main.js): añadida inicialización de la autenticación

parent 078371d9
Showing with 8 additions and 1 deletions
......@@ -4,6 +4,8 @@ import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import { useAuthStore } from './stores/authStore'
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-icons/font/bootstrap-icons.css'
//import 'bootstrap/dist/js/bootstrap.bundle.js'
......@@ -11,8 +13,13 @@ import 'bootstrap-icons/font/bootstrap-icons.css'
const app = createApp(App)
const pinia = createPinia();
app.use(createPinia())
app.use(pinia)
app.use(router)
// Inicializa la autenticación
const authStore = useAuthStore();
authStore.initializeAuth();
app.mount('#app')
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