123456789101112131415161718192021222324252627282930 |
- import './assets/main.scss';
- import { createApp } from 'vue';
- import { createPinia } from 'pinia';
- import ElementPlus from 'element-plus';
- import 'element-plus/dist/index.css';
- import 'leaflet/dist/leaflet.css';
- import App from './App.vue';
- import router from './router';
- import i18n from './i18n';
- // 导入 Element Plus 中文语言包(保留)
- import zhCn from 'element-plus/es/locale/lang/zh-cn';
- // 创建 Vue 应用实例
- const app = createApp(App);
- // ElementPlus 安装(带中文配置)
- app.use(ElementPlus, {
- locale: zhCn,
- });
- // 使用其他插件
- app.use(createPinia());
- app.use(router);
- app.use(i18n);
- // 挂载应用
- app.mount('#app');
|