mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-04 22:41:24 +08:00
Added global internationalization
This commit is contained in:
@@ -1,7 +1,19 @@
|
||||
<template>
|
||||
<router-view></router-view>
|
||||
<el-config-provider :locale="zhCn()">
|
||||
<router-view></router-view>
|
||||
</el-config-provider>
|
||||
</template>
|
||||
|
||||
<script lang="ts"></script>
|
||||
<script lang="ts">
|
||||
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
|
||||
|
||||
export default {
|
||||
methods: {
|
||||
zhCn() {
|
||||
return zhCn
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
||||
Reference in New Issue
Block a user