mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-21 02:04:26 +08:00
code refactor
This commit is contained in:
+1
-1
@@ -164,7 +164,7 @@ export default {
|
|||||||
password
|
password
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getTransactionOverview: ( { today, thisWeek, thisMonth, thisYear } ) => {
|
getTransactionOverview: ({ today, thisWeek, thisMonth, thisYear }) => {
|
||||||
const queryParams = [];
|
const queryParams = [];
|
||||||
|
|
||||||
if (today) {
|
if (today) {
|
||||||
|
|||||||
@@ -212,6 +212,9 @@ const stores = {
|
|||||||
state.allTransactionTagsMap = {};
|
state.allTransactionTagsMap = {};
|
||||||
state.transactionTagListStateInvalid = true;
|
state.transactionTagListStateInvalid = true;
|
||||||
|
|
||||||
|
state.transactionOverview = {};
|
||||||
|
state.transactionOverviewStateInvalid = true;
|
||||||
|
|
||||||
clearExchangeRatesFromLocalStorage();
|
clearExchangeRatesFromLocalStorage();
|
||||||
},
|
},
|
||||||
[STORE_USER_INFO] (state, userInfo) {
|
[STORE_USER_INFO] (state, userInfo) {
|
||||||
|
|||||||
+2
-2
@@ -11,9 +11,9 @@ import {
|
|||||||
CLEAR_USER_INFO,
|
CLEAR_USER_INFO,
|
||||||
|
|
||||||
UPDATE_ACCOUNT_LIST_INVALID_STATE,
|
UPDATE_ACCOUNT_LIST_INVALID_STATE,
|
||||||
UPDATE_TRANSACTION_OVERVIEW_INVALID_STATE,
|
|
||||||
UPDATE_TRANSACTION_CATEGORY_LIST_INVALID_STATE,
|
UPDATE_TRANSACTION_CATEGORY_LIST_INVALID_STATE,
|
||||||
UPDATE_TRANSACTION_TAG_LIST_INVALID_STATE
|
UPDATE_TRANSACTION_TAG_LIST_INVALID_STATE,
|
||||||
|
UPDATE_TRANSACTION_OVERVIEW_INVALID_STATE
|
||||||
} from './mutations.js';
|
} from './mutations.js';
|
||||||
|
|
||||||
export function authorize(context, { loginName, password }) {
|
export function authorize(context, { loginName, password }) {
|
||||||
|
|||||||
Reference in New Issue
Block a user