四零语境后端代码仓库
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.

30 lines
813 B

1 month ago
  1. import '@/style/index.scss'
  2. import '@/style/custom/main.css'
  3. import '@/style/custom/icon.css'
  4. import '@/style/custom/animation.css'
  5. import { VueQueryPlugin } from '@tanstack/vue-query'
  6. import 'virtual:uno.css'
  7. import { createSSRApp } from 'vue'
  8. import App from './App.vue'
  9. import { prototypeInterceptor, requestInterceptor, routeInterceptor } from './interceptors'
  10. import { registerGlobComp } from '@/components/registerGlobComp';
  11. import store from './store'
  12. import router from './router'
  13. export function createApp() {
  14. const app = createSSRApp(App)
  15. app.use(store)
  16. app.use(router)
  17. app.use(routeInterceptor)
  18. app.use(requestInterceptor)
  19. app.use(prototypeInterceptor)
  20. app.use(VueQueryPlugin)
  21. //#ifndef MP-WEIXIN
  22. // 注册全局组件
  23. registerGlobComp(app);
  24. // #endif
  25. return {
  26. app,
  27. }
  28. }