23 lines
491 B
JavaScript
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')
|
|
|