mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-22 10:44:25 +08:00
user settings supports language and date&time format
This commit is contained in:
@@ -200,6 +200,10 @@ export default {
|
||||
return;
|
||||
}
|
||||
|
||||
if (authResponse.user && authResponse.user.language) {
|
||||
self.$locale.setLanguage(authResponse.user.language);
|
||||
}
|
||||
|
||||
if (self.$settings.isAutoUpdateExchangeRatesData()) {
|
||||
self.$store.dispatch('getLatestExchangeRates', { silent: true, force: false });
|
||||
}
|
||||
@@ -244,10 +248,14 @@ export default {
|
||||
token: self.tempToken,
|
||||
passcode: self.twoFAVerifyType === 'passcode' ? self.passcode : null,
|
||||
recoveryCode: self.twoFAVerifyType === 'backupcode' ? self.backupCode : null
|
||||
}).then(() => {
|
||||
}).then(authResponse => {
|
||||
self.verifying = false;
|
||||
self.$hideLoading();
|
||||
|
||||
if (authResponse.user && authResponse.user.language) {
|
||||
self.$locale.setLanguage(authResponse.user.language);
|
||||
}
|
||||
|
||||
if (self.$settings.isAutoUpdateExchangeRatesData()) {
|
||||
self.$store.dispatch('getLatestExchangeRates', { silent: true, force: false });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user