main.js 530 B

12345678910111213141516
  1. import { createApp } from 'vue'
  2. import App from './App.vue'
  3. import './registerServiceWorker'
  4. import router from './router'
  5. import store from './store'
  6. import * as echarts from 'echarts';
  7. import ElementPlus from 'element-plus';
  8. import 'element-plus/dist/index.css';
  9. // import 'element-plus/lib/theme-chalk/index.css';
  10. import locale from 'element-plus/lib/locale/lang/zh-cn';
  11. const app = createApp(App)
  12. app.config.globalProperties.$echarts = echarts
  13. app.use(store)
  14. app.use(router)
  15. app.use(ElementPlus, { locale })
  16. app.mount('#app')