mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 16:54:25 +08:00
modify method name
This commit is contained in:
@@ -182,7 +182,7 @@ import { useTransactionCategoriesStore } from '@/stores/transactionCategory.js';
|
||||
import { useExchangeRatesStore } from '@/stores/exchangeRates.js';
|
||||
|
||||
import categoryConstants from '@/consts/category.js';
|
||||
import { getNameByKeyValue, categoriedArrayToPlainArray } from '@/lib/common.js';
|
||||
import { getNameByKeyValue, categorizedArrayToPlainArray } from '@/lib/common.js';
|
||||
|
||||
export default {
|
||||
props: [
|
||||
@@ -298,7 +298,7 @@ export default {
|
||||
let submitCategories = [];
|
||||
|
||||
if (self.usePresetCategories) {
|
||||
submitCategories = categoriedArrayToPlainArray(self.allPresetCategories);
|
||||
submitCategories = categorizedArrayToPlainArray(self.allPresetCategories);
|
||||
}
|
||||
|
||||
self.rootStore.register({
|
||||
|
||||
@@ -59,7 +59,7 @@ import { mapStores } from 'pinia';
|
||||
import { useTransactionCategoriesStore } from '@/stores/transactionCategory.js';
|
||||
|
||||
import categoryConstants from '@/consts/category.js';
|
||||
import { getObjectOwnFieldCount, categoriedArrayToPlainArray } from '@/lib/common.js';
|
||||
import { getObjectOwnFieldCount, categorizedArrayToPlainArray } from '@/lib/common.js';
|
||||
|
||||
export default {
|
||||
props: [
|
||||
@@ -115,7 +115,7 @@ export default {
|
||||
self.submitting = true;
|
||||
self.$showLoading(() => self.submitting);
|
||||
|
||||
const submitCategories = categoriedArrayToPlainArray(self.allPresetCategories);
|
||||
const submitCategories = categorizedArrayToPlainArray(self.allPresetCategories);
|
||||
|
||||
self.transactionCategoriesStore.addCategories({
|
||||
categories: submitCategories
|
||||
|
||||
Reference in New Issue
Block a user