main.ts 512 B

1234567891011121314151617181920
  1. import './assets/main.scss'
  2. import { createApp } from 'vue'
  3. import { createPinia } from 'pinia'
  4. import ElementPlus from 'element-plus'
  5. import zhCn from 'element-plus/es/locale/lang/zh-cn' // 引入中文语言包
  6. import 'element-plus/dist/index.css'
  7. import 'leaflet/dist/leaflet.css';
  8. import App from './App.vue'
  9. import router from './router'
  10. const app = createApp(App)
  11. app.use(createPinia())
  12. app.use(router)
  13. app.use(ElementPlus, {
  14. locale: zhCn, // 设置Element Plus的语言为中文
  15. })
  16. app.mount('#app')