Files
cmms/vue/main.js
T
2026-09-11 13:30:02 +02:00

23 lines
491 B
JavaScript

import { createApp } from 'vue'
import { createRouter, createWebHashHistory } from 'vue-router'
import { routes, handleHotUpdate } from 'vue-router/auto-routes'
import { i18n, setLocale, initialLocale } from './i18n.js'
import './css/all.css'
import App from './app.vue'
await setLocale(initialLocale())
const router = createRouter({
history: createWebHashHistory(),
routes,
})
if (import.meta.hot) {
handleHotUpdate(router)
}
createApp(App).use(router).use(i18n).mount('#app')