app-use.ts 775 B

123456789101112131415161718192021222324252627
  1. // import { setupRouter } from '@/router'
  2. // import { setupPinia } from '@/stores'
  3. // import { setupAuthRoutes } from '@/router/modules/authRouts'
  4. // import Icon from '@/components/Icon/index.vue'
  5. // import { setupDirectives } from '@/directives/index'
  6. import { setupElIcons } from './el-icons'
  7. import ElementPlus from 'element-plus'
  8. // import { setupI18n } from '@/lang'
  9. import type { App } from 'vue'
  10. export default {
  11. install(app: App<Element>) {
  12. app.use(ElementPlus)
  13. // 自定义指令
  14. // setupDirectives(app)
  15. // // 路由(router)
  16. // setupRouter(app)
  17. // // 状态管理(store)
  18. // setupPinia(app)
  19. // setupI18n(app)
  20. // 自定义icon
  21. // app.component('Icon', Icon)
  22. setupElIcons(app)
  23. // 路由
  24. // setupAuthRoutes()
  25. }
  26. }