21 lines
413 B
TypeScript
21 lines
413 B
TypeScript
import { createApp } from 'vue'
|
|
import { createPinia } from 'pinia'
|
|
import './style.css'
|
|
import App from './App.vue'
|
|
|
|
import { createAppRouter } from './app/router'
|
|
import { useAuthStore } from './stores/auth'
|
|
|
|
const app = createApp(App)
|
|
|
|
const pinia = createPinia()
|
|
app.use(pinia)
|
|
|
|
const auth = useAuthStore(pinia)
|
|
auth.initFromStorage()
|
|
|
|
const router = createAppRouter(pinia)
|
|
app.use(router)
|
|
|
|
app.mount('#app')
|