mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-26 17:13:54 +08:00
updata:移动端添加语言切换功能
This commit is contained in:
@@ -7,12 +7,19 @@ import store from './store'
|
||||
import '@/style/index.scss'
|
||||
import 'virtual:uno.css'
|
||||
|
||||
// 导入国际化相关功能
|
||||
import { initI18n } from './i18n'
|
||||
import { useLangStore } from './store/lang'
|
||||
|
||||
export function createApp() {
|
||||
const app = createSSRApp(App)
|
||||
app.use(store)
|
||||
app.use(routeInterceptor)
|
||||
app.use(VueQueryPlugin)
|
||||
|
||||
// 初始化国际化
|
||||
initI18n()
|
||||
|
||||
return {
|
||||
app,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user