2023-12-21 15:52:49 +08:00
|
|
|
import { createSSRApp } from 'vue'
|
|
|
|
import App from './App.vue'
|
2023-12-22 15:12:44 +08:00
|
|
|
import store from './store'
|
2024-04-17 15:32:15 +08:00
|
|
|
import { routeInterceptor, requestInterceptor, prototypeInterceptor } from './interceptors'
|
2023-12-21 17:32:53 +08:00
|
|
|
import 'virtual:uno.css'
|
2024-01-30 20:22:35 +08:00
|
|
|
import '@/style/index.scss'
|
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)
|
2023-12-21 15:52:49 +08:00
|
|
|
return {
|
|
|
|
app,
|
|
|
|
}
|
|
|
|
}
|