feat: update

This commit is contained in:
xiaoxian521
2021-10-28 21:52:21 +08:00
parent b520e234a1
commit 3851d284bf
4 changed files with 92 additions and 53 deletions

View File

@@ -14,14 +14,8 @@ export default {
[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;
}
return this.$storage.locale?.locale === "zh" ? zhCn : en;
}
}
};