code refactor

This commit is contained in:
MaysWind
2023-07-11 00:35:21 +08:00
parent d76e88af21
commit a235d6a8cd
2 changed files with 12 additions and 7 deletions
@@ -176,13 +176,7 @@ export default {
computed: {
...mapStores(useRootStore, useSettingsStore, useUserStore, useExchangeRatesStore),
enableDisableOptions() {
return [{
value: true,
displayName: this.$t('Enable')
},{
value: false,
displayName: this.$t('Disable')
}];
return this.$locale.getEnableDisableOptions();
},
allTimezones() {
return this.$locale.getAllTimezones(true);