25 lines
598 B
JavaScript
25 lines
598 B
JavaScript
import './assets/main.css'
|
|
|
|
import { createApp } from 'vue'
|
|
import pinia from './stores'
|
|
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
|
|
const app = createApp(App)
|
|
|
|
app.use(pinia)
|
|
app.use(router)
|
|
|
|
// Инициализация auth store после создания app
|
|
import { useAuthStore } from './stores/auth'
|
|
const authStore = useAuthStore()
|
|
// Инициализируем авторизацию
|
|
authStore.initializeAuth().then(() => {
|
|
console.log('Auth initialization completed')
|
|
}).catch(error => {
|
|
console.error('Auth initialization failed:', error)
|
|
})
|
|
|
|
app.mount('#app')
|