refactor(projects): element-plus国际化

This commit is contained in:
Soybean
2021-08-13 17:27:02 +08:00
parent a0ec84588a
commit 88320a8e01
2 changed files with 9 additions and 9 deletions

View File

@ -1,8 +1,5 @@
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 {
// ElAlert,
// ElAside,
@ -182,8 +179,6 @@ const plugins = [
/** 引入element-plus UI组件 */
export default function setupElementPlus(app: App<Element>): void {
/** 国际化 */
locale.use(lang);
components.forEach(component => {
app.component(component.name, component);
});