code refactor

This commit is contained in:
MaysWind
2020-11-22 14:00:36 +08:00
parent 9ab285a071
commit 9e1ec6d13c
6 changed files with 50 additions and 43 deletions
+5 -1
View File
@@ -93,7 +93,7 @@ export default {
},
computed: {
allCurrencies() {
return this.$getAllCurrencies();
return this.$locale.getAllCurrencies();
},
inputIsEmpty() {
return !!this.inputEmptyProblemMessage;
@@ -161,6 +161,10 @@ export default {
if (self.$utilities.isString(data.result.token)) {
self.$user.updateTokenAndUserInfo(data.result);
if (self.$settings.isAutoUpdateExchangeRatesData()) {
self.$services.autoRefreshLatestExchangeRates();
}
}
self.$toast('You have been successfully registered');