| import { createApp } from 'vue' | |
| import { createPinia } from 'pinia' | |
| import router from './router' | |
| import App from './App.vue' | |
| import './style.css' | |
| // Initialize Vue app | |
| const app = createApp(App) | |
| const pinia = createPinia() | |
| // Use plugins | |
| app.use(pinia) | |
| app.use(router) | |
| // Global error handler | |
| app.config.errorHandler = (err, instance, info) => { | |
| console.error('Vue Error:', err, info) | |
| } | |
| // Mount app | |
| app.mount('#app') |