From a9626d3ace9032076a70b8453f2222f9eb1f90cf Mon Sep 17 00:00:00 2001 From: chansee97 Date: Fri, 26 Apr 2024 16:36:15 +0800 Subject: [PATCH] fix: type error --- src/typings/route.d.ts | 2 +- src/views/setting/menu/components/TableModal.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/typings/route.d.ts b/src/typings/route.d.ts index 76cdec0..e2046dc 100644 --- a/src/typings/route.d.ts +++ b/src/typings/route.d.ts @@ -39,7 +39,7 @@ declare namespace AppRoute { /* 页面组件地址 */ componentPath?: string | null /* 路由id */ - id: numnber + id: number /* 父级路由id,顶级页面为null */ pid: number | null } diff --git a/src/views/setting/menu/components/TableModal.vue b/src/views/setting/menu/components/TableModal.vue index 00ac4b5..6463b20 100644 --- a/src/views/setting/menu/components/TableModal.vue +++ b/src/views/setting/menu/components/TableModal.vue @@ -23,7 +23,7 @@ const emit = defineEmits<{ const defaultFormModal: AppRoute.RowRoute = { 'name': '', 'path': '', - 'id': undefined, + 'id': -1, 'pid': null, 'meta.title': '', 'meta.icon': '',