Bez popisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.ts 524B

123456789101112131415161718192021
  1. import { createApp } from 'vue'
  2. import ElementPlus from 'element-plus'
  3. import 'element-plus/dist/index.css'
  4. import * as ElementPlusIconsVue from '@element-plus/icons-vue'
  5. import App from './App.vue'
  6. import router from './router'
  7. import pinia from './store'
  8. import './styles/index.scss'
  9. const app = createApp(App)
  10. // 注册所有Element Plus图标
  11. for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  12. app.component(key, component)
  13. }
  14. app.use(ElementPlus)
  15. app.use(router)
  16. app.use(pinia)
  17. app.mount('#app')