fix: 指定超级用户标记为super
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "vue-antd",
|
||||
"name": "wanfi-user",
|
||||
"type": "module",
|
||||
"version": "1.0.0",
|
||||
"scripts": {
|
||||
|
||||
@@ -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']
|
||||
}
|
||||
},
|
||||
];
|
||||
|
||||
1
src/typings/components.d.ts
vendored
1
src/typings/components.d.ts
vendored
@@ -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']
|
||||
|
||||
@@ -38,7 +38,7 @@ interface RegisterModel {
|
||||
password: string;
|
||||
email: string;
|
||||
fullName: string;
|
||||
age: 0;
|
||||
age: number;
|
||||
gender: string;
|
||||
phone: string;
|
||||
address: string;
|
||||
|
||||
Reference in New Issue
Block a user