mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-21 22:53:56 +08:00
26 lines
519 B
TypeScript
26 lines
519 B
TypeScript
import { VueQueryPlugin } from '@tanstack/vue-query'
|
|
import { createSSRApp } from 'vue'
|
|
import App from './App.vue'
|
|
// 导入国际化相关功能
|
|
import { initI18n } from './i18n'
|
|
|
|
import { routeInterceptor } from './router/interceptor'
|
|
import store from './store'
|
|
|
|
import '@/style/index.scss'
|
|
import 'virtual:uno.css'
|
|
|
|
export function createApp() {
|
|
const app = createSSRApp(App)
|
|
app.use(store)
|
|
app.use(routeInterceptor)
|
|
app.use(VueQueryPlugin)
|
|
|
|
// 初始化国际化
|
|
initI18n()
|
|
|
|
return {
|
|
app,
|
|
}
|
|
}
|