2025-10-29 09:05:59 +08:00
|
|
|
import { VueQueryPlugin } from '@tanstack/vue-query'
|
|
|
|
|
import { createSSRApp } from 'vue'
|
|
|
|
|
import App from './App.vue'
|
|
|
|
|
import { requestInterceptor } from './http/interceptor'
|
|
|
|
|
import { routeInterceptor } from './router/interceptor'
|
|
|
|
|
|
2025-10-31 15:36:35 +08:00
|
|
|
import { pinia } from './pinia'
|
2025-10-29 09:05:59 +08:00
|
|
|
import '@/style/index.scss'
|
|
|
|
|
import 'virtual:uno.css'
|
|
|
|
|
|
|
|
|
|
export function createApp() {
|
|
|
|
|
const app = createSSRApp(App)
|
2025-10-31 15:36:35 +08:00
|
|
|
app.use(pinia)
|
2025-10-29 09:05:59 +08:00
|
|
|
app.use(routeInterceptor)
|
|
|
|
|
app.use(requestInterceptor)
|
|
|
|
|
app.use(VueQueryPlugin)
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
app,
|
|
|
|
|
}
|
|
|
|
|
}
|