main.ts 669 B

1234567891011121314151617181920212223242526
  1. import { createApp } from 'vue'
  2. import { createPinia } from 'pinia'
  3. import App from './App.vue'
  4. import router, { setRouter } from './router'
  5. import '@/router/permission'
  6. import { View, Setting, User, Lock, Expand, Fold, Refresh } from '@element-plus/icons-vue'
  7. import './assets/main.css'
  8. import 'element-plus/dist/index.css'
  9. const app = createApp(App)
  10. // 注册需要的图标组件
  11. app.component('View', View)
  12. app.component('Setting', Setting)
  13. app.component('User', User)
  14. app.component('Lock', Lock)
  15. app.component('Expand', Expand)
  16. app.component('Fold', Fold)
  17. app.component('Refresh', Refresh)
  18. app.use(createPinia())
  19. setRouter()
  20. app.use(router)
  21. app.mount('#app')