fix category not display in transaction list page sometimes

This commit is contained in:
MaysWind
2021-01-11 00:20:35 +08:00
parent 32ccbdcd03
commit bf8dd5aa62
+6 -7
View File
@@ -441,17 +441,16 @@ export default {
self.loading = true; self.loading = true;
} }
const promises = [ Promise.all([
self.$store.dispatch('loadAllAccounts', { force: false }), self.$store.dispatch('loadAllAccounts', { force: false }),
self.$store.dispatch('loadAllCategories', { force: false }), self.$store.dispatch('loadAllCategories', { force: false })
self.$store.dispatch('getTransactions', { ]).then(() => {
return self.$store.dispatch('getTransactions', {
reload: true, reload: true,
autoExpand: true, autoExpand: true,
defaultCurrency: self.defaultCurrency defaultCurrency: self.defaultCurrency
}) });
]; }).then(() => {
Promise.all(promises).then(() => {
if (done) { if (done) {
done(); done();
} }