mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 09:44:26 +08:00
fix the problem that page jump infinitely
This commit is contained in:
+15
-13
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user