You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
735 B
44 lines
735 B
<template> |
|
<!-- <el-config-provider :locale="zhCn">--> |
|
<el-config-provider :locale="elementLocales[locale]"> |
|
<router-view></router-view> |
|
</el-config-provider> |
|
</template> |
|
|
|
<script setup> |
|
// import zhCn from 'element-plus/dist/locale/zh-cn.mjs' |
|
import {useI18n} from "vue-i18n"; |
|
import {elementLocales} from "@/i18n/index.js"; |
|
const {locale} = useI18n(); |
|
locale.value = localStorage.getItem('locale') || 'zh-cn'; |
|
</script> |
|
|
|
|
|
<style> |
|
html, |
|
body { |
|
height: 100%; |
|
} |
|
|
|
#app { |
|
height: 100%; |
|
align-items: center; |
|
justify-content: center; |
|
} |
|
|
|
.flex-center { |
|
display: flex; |
|
align-items: center; |
|
justify-content: center; |
|
} |
|
|
|
.cursor { |
|
cursor: pointer; |
|
} |
|
.txt-c { |
|
text-align: center; |
|
} |
|
.w100p { |
|
width: 100%; |
|
} |
|
</style>
|
|
|