chore: update element-plus to the latest version

This commit is contained in:
xiaoxian521
2021-08-18 18:05:13 +08:00
parent 74ef4e1722
commit 666e755ae5
7 changed files with 1340 additions and 216 deletions

View File

@@ -1,3 +1,27 @@
<template>
<router-view />
<el-config-provider :locale="currentLocale">
<router-view />
</el-config-provider>
</template>
<script>
import { ElConfigProvider } from "element-plus";
import zhCn from "element-plus/lib/locale/lang/zh-cn";
import en from "element-plus/lib/locale/lang/en";
export default {
components: {
[ElConfigProvider.name]: ElConfigProvider
},
computed: {
// eslint-disable-next-line vue/return-in-computed-property
currentLocale() {
switch (this.$storage.locale?.locale) {
case "zh":
return zhCn;
case "en":
return en;
}
}
}
};
</script>