website/src/main.ts
2025-05-10 17:58:01 +08:00

23 lines
545 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import router from './router/index'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css';
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import App from './App.vue'
import '@/assets/css/index.css'
import '../public/xiaofa-font/iconfont.css'
const app = createApp(App);
const pinia = createPinia()
app.use(pinia)
app.use(router)
//启用element 国际化并且启用element-plus
app.use(ElementPlus,{
locale: zhCn,
})
app.mount('#app')