main.js 498 Bytes
Newer Older
孙谢炜's avatar
孙谢炜 committed
1 2 3 4 5 6 7 8 9 10 11
/**
 * main.js
 *
 * Bootstraps Vuetify and other plugins then mounts the App`
 */

// Plugins
import { registerPlugins } from '@/plugins'

// Components
import App from './main.vue'
sunxiwei's avatar
sunxiwei committed
12 13
import { createVuetify } from 'vuetify'
import { zhHans } from 'vuetify/locale'
孙谢炜's avatar
孙谢炜 committed
14 15 16 17 18 19 20 21

// Composables
import { createApp } from 'vue'

const app = createApp(App)

registerPlugins(app)

sunxiwei's avatar
sunxiwei committed
22 23 24 25 26 27 28 29
const vuetify = createVuetify({
  locale: {
    locale: 'zhHans',
    messages: { zhHans },
  },
})

app.use(vuetify)
孙谢炜's avatar
孙谢炜 committed
30
app.mount('#app')