Init commit.

This commit is contained in:
sleepwithoutbz
2025-11-10 00:45:30 +08:00
commit de451f2aab
60 changed files with 15847 additions and 0 deletions

25
src/main.ts Normal file
View File

@@ -0,0 +1,25 @@
// import './assets/main.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { createI18n } from 'vue-i18n' // node_modules\vue-i18n
import zh from './locales/zh.json'
import en from './locales/en.json'
import App from './App.vue'
import router from './router'
const app = createApp(App)
const i18n = createI18n({
locale: 'en', // 默认语言
fallbackLocale: 'zh', // 备用语言
messages: {
zh,
en,
},
})
app.use(i18n) // 将 i18n 实例添加到 Vue 应用中
app.use(createPinia())
app.use(router)
app.mount('#app')