mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-15 14:03:36 +08:00
fix: i18n bug in production
This commit is contained in:
@@ -62,6 +62,10 @@ const components = [
|
||||
|
||||
const plugins = [ElLoading];
|
||||
|
||||
import ElementLocale from "element-plus/lib/locale";
|
||||
import zhLocale from "element-plus/lib/locale/lang/zh-cn";
|
||||
ElementLocale.use(zhLocale);
|
||||
|
||||
export function useElementPlus(app: App) {
|
||||
components.forEach((component) => {
|
||||
app.component(component.name, component);
|
||||
|
||||
Reference in New Issue
Block a user