From aa16dc65efa5b772454f5a020135f0ccb8be0f60 Mon Sep 17 00:00:00 2001 From: Soybean <2570172956@qq.com> Date: Sat, 5 Jun 2021 17:19:19 +0800 Subject: [PATCH] =?UTF-8?q?build(deps):=20=E4=BF=AE=E5=A4=8Delement-plus?= =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96=E5=BC=95=E5=85=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/element-plus.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/element-plus.ts b/src/plugins/element-plus.ts index 780392ae..34d2341a 100644 --- a/src/plugins/element-plus.ts +++ b/src/plugins/element-plus.ts @@ -1,5 +1,6 @@ import type { App } from 'vue'; import 'element-plus/lib/theme-chalk/base.css'; +import locale from 'element-plus/lib/locale'; import lang from 'element-plus/lib/locale/lang/zh-cn'; import 'dayjs/locale/zh-cn'; import { @@ -83,11 +84,10 @@ import { // ElTree, // ElUpload, // ElInfiniteScroll, - ElLoading, + ElLoading // ElMessage // ElMessageBox, // ElNotification - locale } from 'element-plus'; const components = [ @@ -183,7 +183,7 @@ const plugins = [ /** 引入element-plus UI组件 */ export default function setupElementPlus(app: App) { /** 国际化 */ - locale(lang); + locale.use(lang); components.forEach(component => { app.component(component.name, component); });