237ee6742e
modified: begushiybashkir/bbvue/src/stores/auth.js new file: begushiybashkir/bbvue/src/stores/helpers/api.js new file: begushiybashkir/bbvue/src/stores/index.js new file: begushiybashkir/bbvue/src/stores/plugins/persistence.js modified: begushiybashkir/bbvue/src/stores/user.js modified: serv_nginx/api_bb/internal/models/user.go new file: serv_nginx/api_bb/internal/models/workout.go fix save store, add helpers, add new models
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')
|