mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
migrate to typescript
This commit is contained in:
@@ -208,7 +208,7 @@ import { useTransactionTemplatesStore } from '@/stores/transactionTemplate.js';
|
||||
import { useOverviewStore } from '@/stores/overview.js';
|
||||
|
||||
import datetimeConstants from '@/consts/datetime.js';
|
||||
import templateConstants from '@/consts/template.js';
|
||||
import { TemplateType } from '@/core/template.ts';
|
||||
import { formatUnixTime } from '@/lib/datetime.js';
|
||||
|
||||
export default {
|
||||
@@ -236,7 +236,7 @@ export default {
|
||||
},
|
||||
allTransactionTemplates() {
|
||||
const allTemplates = this.transactionTemplatesStore.allVisibleTemplates;
|
||||
return allTemplates[templateConstants.allTemplateTypes.Normal] || [];
|
||||
return allTemplates[TemplateType.Normal.type] || [];
|
||||
},
|
||||
allDateRanges() {
|
||||
return datetimeConstants.allDateRanges;
|
||||
@@ -285,7 +285,7 @@ export default {
|
||||
});
|
||||
|
||||
self.transactionTemplatesStore.loadAllTemplates({
|
||||
templateType: templateConstants.allTemplateTypes.Normal,
|
||||
templateType: TemplateType.Normal.type,
|
||||
force: false
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user