mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 23:47:33 +08:00
don't update exchange rates data when user not logined
This commit is contained in:
+7
-7
@@ -163,15 +163,15 @@ Vue.filter('tokenIcon', (value) => tokenIconFilter(value));
|
||||
|
||||
Vue.prototype.$setLanguage(settings.getLanguage() || getDefaultLanguage());
|
||||
|
||||
if (!settings.isEnableApplicationLock()) {
|
||||
// refresh token if user is logined
|
||||
if (userstate.isUserLogined()) {
|
||||
if (userstate.isUserLogined()) {
|
||||
if (!settings.isEnableApplicationLock()) {
|
||||
// refresh token if user is logined
|
||||
services.refreshToken();
|
||||
}
|
||||
|
||||
// auto refresh exchange rates data
|
||||
if (settings.isAutoUpdateExchangeRatesData()) {
|
||||
services.autoRefreshLatestExchangeRates();
|
||||
// auto refresh exchange rates data
|
||||
if (settings.isAutoUpdateExchangeRatesData()) {
|
||||
services.autoRefreshLatestExchangeRates();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user