mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 00:12:11 +08:00
clear displayed transactions when changing filter
This commit is contained in:
@@ -307,6 +307,11 @@ export const useTransactionsStore = defineStore('transactions', {
|
||||
this.transactionsNextTimeId = 0;
|
||||
this.transactionListStateInvalid = true;
|
||||
},
|
||||
clearTransactions() {
|
||||
this.transactions = [];
|
||||
this.transactionsNextTimeId = 0;
|
||||
this.transactionListStateInvalid = true;
|
||||
},
|
||||
initTransactionListFilter(filter) {
|
||||
if (filter && isNumber(filter.dateType)) {
|
||||
this.transactionsFilter.dateType = filter.dateType;
|
||||
|
||||
Reference in New Issue
Block a user