多语言

This commit is contained in:
李志鹏
2026-05-18 10:39:52 +08:00
parent 4587a59a89
commit f282adfd87
9 changed files with 161 additions and 16 deletions

View File

@@ -4,13 +4,15 @@ import { routes } from './routes'
// import './style.css'
import '@/assets/css/style.less'
import directives from './directives/index'
import i18n from './lang/index'
export const createApp = ViteSSG(App, {
routes,
base: import.meta.env.BASE_URL,
},
routes,
base: import.meta.env.BASE_URL,
},
({ app }) => {
// 注册全局指令
app.use(directives)
app.use(i18n)
}
)