fix the problem that page jump infinitely

This commit is contained in:
MaysWind
2023-04-21 23:53:43 +08:00
parent e013a6f087
commit 9770851fd4
+15 -13
View File
@@ -289,21 +289,23 @@ export default {
created() { created() {
const self = this; const self = this;
self.loading = true; if (self.$user.isUserLogined() && self.$user.isUserUnlocked()) {
self.loading = true;
self.$store.dispatch('loadTransactionOverview', { self.$store.dispatch('loadTransactionOverview', {
defaultCurrency: self.defaultCurrency, defaultCurrency: self.defaultCurrency,
dateRange: self.dateRange, dateRange: self.dateRange,
force: false force: false
}).then(() => { }).then(() => {
self.loading = false; self.loading = false;
}).catch(error => { }).catch(error => {
self.loading = false; self.loading = false;
if (!error.processed) { if (!error.processed) {
self.$toast(error.message || error); self.$toast(error.message || error);
} }
}); });
}
}, },
methods: { methods: {
onPageAfterIn() { onPageAfterIn() {