unibest/src/main.ts

22 lines
505 B
TypeScript
Raw Normal View History

2025-01-08 21:19:33 +08:00
import '@/style/index.scss'
2025-01-10 10:54:23 +08:00
import { VueQueryPlugin } from '@tanstack/vue-query'
import 'uno.css'
2023-12-21 15:52:49 +08:00
import { createSSRApp } from 'vue'
2023-12-21 15:52:49 +08:00
import App from './App.vue'
2025-01-08 21:19:33 +08:00
import { prototypeInterceptor, requestInterceptor, routeInterceptor } from './interceptors'
2023-12-22 15:12:44 +08:00
import store from './store'
2023-12-21 17:32:53 +08:00
2023-12-21 15:52:49 +08:00
export function createApp() {
const app = createSSRApp(App)
2024-01-30 17:37:18 +08:00
app.use(store)
2024-03-27 17:20:05 +08:00
app.use(routeInterceptor)
app.use(requestInterceptor)
2024-04-17 15:32:15 +08:00
app.use(prototypeInterceptor)
app.use(VueQueryPlugin)
2023-12-21 15:52:49 +08:00
return {
app,
}
}