From d4ff8f2851a6970a7da5601a1178b10aca8cf1a7 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Wed, 20 Jan 2021 22:37:35 +0800 Subject: [PATCH] modify method name --- src/store/index.js | 4 ++-- src/store/transaction.js | 2 +- src/views/mobile/transactions/List.vue | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index c6f53cd9..1be57286 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -104,7 +104,7 @@ import { import { initTransactionListFilter, updateTransactionListFilter, - getTransactions, + loadTransactions, getTransaction, saveTransaction, deleteTransaction, @@ -771,7 +771,7 @@ const stores = { // transaction initTransactionListFilter, updateTransactionListFilter, - getTransactions, + loadTransactions, getTransaction, saveTransaction, deleteTransaction, diff --git a/src/store/transaction.js b/src/store/transaction.js index 8c40264c..4155b7c1 100644 --- a/src/store/transaction.js +++ b/src/store/transaction.js @@ -30,7 +30,7 @@ export function updateTransactionListFilter(context, filter) { context.commit(UPDATE_TRANSACTION_LIST_FILTER, filter); } -export function getTransactions(context, { reload, autoExpand, defaultCurrency }) { +export function loadTransactions(context, { reload, autoExpand, defaultCurrency }) { let actualMaxTime = context.state.transactionsNextTimeId; if (reload && context.state.transactionsFilter.maxTime > 0) { diff --git a/src/views/mobile/transactions/List.vue b/src/views/mobile/transactions/List.vue index 4b064f15..c0d0829d 100644 --- a/src/views/mobile/transactions/List.vue +++ b/src/views/mobile/transactions/List.vue @@ -453,7 +453,7 @@ export default { self.$store.dispatch('loadAllAccounts', { force: false }), self.$store.dispatch('loadAllCategories', { force: false }) ]).then(() => { - return self.$store.dispatch('getTransactions', { + return self.$store.dispatch('loadTransactions', { reload: true, autoExpand: true, defaultCurrency: self.defaultCurrency @@ -493,7 +493,7 @@ export default { self.loadingMore = true; - self.$store.dispatch('getTransactions', { + self.$store.dispatch('loadTransactions', { reload: false, autoExpand: autoExpand, defaultCurrency: self.defaultCurrency