main.ts 505 B

12345678910111213141516171819202122
  1. import '@/style/index.scss'
  2. import { VueQueryPlugin } from '@tanstack/vue-query'
  3. import 'uno.css'
  4. import { createSSRApp } from 'vue'
  5. import App from './App.vue'
  6. import { prototypeInterceptor, requestInterceptor, routeInterceptor } from './interceptors'
  7. import store from './store'
  8. export function createApp() {
  9. const app = createSSRApp(App)
  10. app.use(store)
  11. app.use(routeInterceptor)
  12. app.use(requestInterceptor)
  13. app.use(prototypeInterceptor)
  14. app.use(VueQueryPlugin)
  15. return {
  16. app,
  17. }
  18. }