main.ts 623 B

1234567891011121314151617181920212223
  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 "./styles.css"
  10. import * as echarts from 'echarts';
  11. const app = createApp(App)
  12. for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  13. app.component(key, component)
  14. }
  15. app.config.globalProperties.$echarts = echarts;
  16. app
  17. .use(ElementPlus)
  18. .use(createPinia())
  19. .use(router)
  20. .mount('#app')