1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

chore: 引入 vue-i18n 依赖

This commit is contained in:
2025-02-22 18:06:47 +08:00
parent 496124e721
commit 33311eb8ad
3 changed files with 71 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
import './assets/main.css'
import { createApp } from 'vue'
import { createI18n } from 'vue-i18n'
import { createPinia } from 'pinia'
import App from './App.vue'
@@ -8,6 +9,10 @@ import router from './router'
const app = createApp(App)
// 导入 vue-i18n 模块
const i18n = createI18n({})
app.use(i18n)
// 导入 pinia 模块
const pinia = createPinia()
app.use(pinia)