mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
fix category not display in transaction list page sometimes
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user