From 3be0ee5b5aa8e88275bfaf96faf53bb98f44ed90 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Tue, 3 Dec 2024 16:45:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8C=87=E5=AE=9A=E8=B6=85=E7=BA=A7?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=A0=87=E8=AE=B0=E4=B8=BAsuper?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/router/elegant/routes.ts | 4 ++-- src/typings/components.d.ts | 1 - src/views/_builtin/login/modules/register.vue | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 7e28132..f3a0b9a 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "vue-antd", + "name": "wanfi-user", "type": "module", "version": "1.0.0", "scripts": { diff --git a/src/router/elegant/routes.ts b/src/router/elegant/routes.ts index 983161e..2a24241 100644 --- a/src/router/elegant/routes.ts +++ b/src/router/elegant/routes.ts @@ -90,7 +90,7 @@ export const generatedRoutes: GeneratedRoute[] = [ i18nKey: 'route.function', icon: 'icon-park-outline:all-application', order: 1002, - roles: ['superuser'], + roles: ['super'], }, children: [ { @@ -208,7 +208,7 @@ export const generatedRoutes: GeneratedRoute[] = [ i18nKey: 'route.about', icon: 'fluent:book-information-24-regular', order: 1003, - roles: ['superuser'] + roles: ['super'] } }, ]; diff --git a/src/typings/components.d.ts b/src/typings/components.d.ts index 49cd77d..10e16c5 100644 --- a/src/typings/components.d.ts +++ b/src/typings/components.d.ts @@ -30,7 +30,6 @@ declare module 'vue' { AListItem: typeof import('ant-design-vue/es')['ListItem'] AListItemMeta: typeof import('ant-design-vue/es')['ListItemMeta'] AMenu: typeof import('ant-design-vue/es')['Menu'] - AMenuDivider: typeof import('ant-design-vue/es')['MenuDivider'] AMenuItem: typeof import('ant-design-vue/es')['MenuItem'] AModal: typeof import('ant-design-vue/es')['Modal'] APopconfirm: typeof import('ant-design-vue/es')['Popconfirm'] diff --git a/src/views/_builtin/login/modules/register.vue b/src/views/_builtin/login/modules/register.vue index c1fe06e..6489f6a 100644 --- a/src/views/_builtin/login/modules/register.vue +++ b/src/views/_builtin/login/modules/register.vue @@ -38,7 +38,7 @@ interface RegisterModel { password: string; email: string; fullName: string; - age: 0; + age: number; gender: string; phone: string; address: string;