1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| <script setup>
| import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
|
| const locale = ref(zhCn);
| </script>
|
| <template>
| <el-config-provider :locale="locale">
| <router-view />
| </el-config-provider>
| </template>
|
| <style scoped>
| html, body, #app {
| height: 100vh;
| margin: 0;
| padding: 0;
| }
| </style>
|
|