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.
|
|
|
<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>
|
|
|
|
body {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
#app {
|
|
|
|
font-family: Avenir, Helvetica, Arial, sans-serif;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
text-align: center;
|
|
|
|
color: #2c3e50;
|
|
|
|
margin-top: 60px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.flex-center {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.cursor {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
</style>
|