main.ts 601 B

12345678910111213141516171819202122
  1. import { createApp } from 'vue'
  2. import { createPinia } from 'pinia'
  3. import ElementPlus from 'element-plus'
  4. import "./TailWindCss/index.css";
  5. import 'element-plus/dist/index.css'
  6. import * as ElementPlusIconsVue from '@element-plus/icons-vue'
  7. import App from './App.vue'
  8. import router from './router/index'
  9. import * as echarts from 'echarts';
  10. const app = createApp(App)
  11. for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  12. app.component(key, component)
  13. }
  14. app.config.globalProperties.$echarts = echarts;
  15. app
  16. .use(ElementPlus)
  17. .use(createPinia())
  18. .use(router)
  19. .mount('#app')