Skip to content

Commit 479665c

Browse files
author
=
committed
调整按需加载下element的国际化为中文
1 parent 3464e1a commit 479665c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

web/src/App.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<template>
22
<div id="app">
3-
<router-view />
3+
<el-config-provider :locale="zhCn">
4+
<router-view />
5+
</el-config-provider>
46
</div>
57
</template>
68

@@ -10,6 +12,9 @@ export default {
1012
}
1113
</script>
1214

15+
<script setup>
16+
import zhCn from 'element-plus/lib/locale/lang/zh-cn'
17+
</script>
1318
<style lang="scss">
1419
// 引入初始化样式
1520
#app {

0 commit comments

Comments
 (0)