moove bbvue
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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')
|
||||
Reference in New Issue
Block a user