main.js 645 B

12345678910111213141516171819202122
  1. import { createApp } from 'vue'
  2. import App from './App.vue'
  3. import ElementPlus from 'element-plus'
  4. // import './assets/main.css'
  5. import 'element-plus/dist/index.css'
  6. import './style/public.css'
  7. import router from "./router";
  8. import JwChat from 'jwchat';
  9. import zhCn from 'element-plus/lib/locale/lang/zh-cn'
  10. import * as ElementPlusIconsVue from '@element-plus/icons-vue'
  11. const app = createApp(App)
  12. for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  13. app.component(key, component)
  14. }
  15. app.use(ElementPlus, { locale: zhCn })
  16. app.use(router)
  17. app.use(JwChat)
  18. app.mount('#app')
  19. // createApp(App).use(ElementPlus).mount('#app')