migrate to typescript

This commit is contained in:
MaysWind
2024-12-29 14:24:37 +08:00
parent b638a73e4d
commit 2560a70e5e
171 changed files with 3402 additions and 2557 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
import { createRouter, createWebHashHistory } from 'vue-router';
import templateConstants from '@/consts/template.js';
import { TemplateType } from '@/core/template.ts';
import userState from '@/lib/userstate.js';
import MainLayout from '@/views/desktop/MainLayout.vue';
@@ -148,7 +148,7 @@ const router = createRouter({
component: TransactionTemplateListPage,
beforeEnter: checkLogin,
props: {
initType: templateConstants.allTemplateTypes.Normal
initType: TemplateType.Normal.type
}
},
{
@@ -156,7 +156,7 @@ const router = createRouter({
component: TransactionTemplateListPage,
beforeEnter: checkLogin,
props: {
initType: templateConstants.allTemplateTypes.Schedule
initType: TemplateType.Schedule.type
}
},
{