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.

22 lines
703 B

2 months ago
2 months ago
2 months ago
2 months ago
  1. import { createApp } from 'vue'
  2. import App from './App.vue'
  3. import router from './router'
  4. import ElementPlus from 'element-plus'
  5. import 'element-plus/dist/index.css'
  6. import * as ElementPlusIconsVue from '@element-plus/icons-vue'
  7. // import 'reset-css';
  8. import { createPinia } from 'pinia'
  9. import { useAppBridge } from './assets/js/useAppBridge.js'
  10. const { packageFun, fullClose } = useAppBridge()
  11. const app = createApp(App)
  12. const pinia = createPinia()
  13. for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  14. app.component(key, component)
  15. }
  16. app.use(router)
  17. app.use(ElementPlus)
  18. app.use(pinia)
  19. app.provide('packageFun', packageFun)
  20. app.provide('fullClose', fullClose)
  21. app.mount('#app')