Element plus 汉化
- App.vue 直接拷贝
<template>
<el-config-provider :locale="locale">
<router-view />
</el-config-provider>
</template>
<script >
import { ElConfigProvider } from "element-plus";
import zhCn from "element-plus/lib/locale/lang/zh-cn";
export default {
name: "app",
components: {
ElConfigProvider,
},
data() {
return {
locale: zhCn,
};
},
};
</script>
<style lang="scss">
@import url('@/assets/css/reset.scss');
</style>