Files
aiot-uniapp/src/main.ts

20 lines
422 B
TypeScript
Raw Normal View History

2023-12-21 15:52:49 +08:00
import { createSSRApp } from 'vue'
import App from './App.vue'
import { requestInterceptor } from './http/interceptor'
import { routeInterceptor } from './router/interceptor'
2023-12-22 15:12:44 +08:00
import store from './store'
import '@/style/index.scss'
import 'virtual:uno.css'
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)
2023-12-21 15:52:49 +08:00
return {
app,
}
}