element plus英文解决

  • Post author:
  • Post category:其他



在App.vue 根节点添加el-config-provider标签

<template>
	<el-config-provider :locale="locale">
		<div>
			<router-view />
		</div>
	</el-config-provider>
</template>

<script>
import zhCn from 'element-plus/lib/locale/lang/zh-cn'
export default {
	name: 'App',
	components: {},
	data() {
		return {
      locale: zhCn
    }
	},
	created() {},
	mounted() {},
	methods: {}
}
</script>



版权声明:本文为weixin_53545517原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。