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.

24 lines
825 B

5 months ago
5 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 piniaPluginPersistedstate from "pinia-plugin-persistedstate";
  10. import { useAppBridge } from "./assets/js/useAppBridge.js";
  11. const { packageFun, fullClose } = useAppBridge();
  12. const app = createApp(App);
  13. const pinia = createPinia();
  14. pinia.use(piniaPluginPersistedstate);
  15. for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  16. app.component(key, component);
  17. }
  18. app.use(router);
  19. app.use(ElementPlus);
  20. app.use(pinia);
  21. app.provide("packageFun", packageFun);
  22. app.provide("fullClose", fullClose);
  23. app.mount("#app");