feat: 屏蔽菜单和修改密码接口参数
This commit is contained in:
@@ -91,136 +91,136 @@ export const generatedRoutes: GeneratedRoute[] = [
|
|||||||
},
|
},
|
||||||
|
|
||||||
// 下面是指定角色才有
|
// 下面是指定角色才有
|
||||||
{
|
// {
|
||||||
name: 'function',
|
// name: 'function',
|
||||||
path: '/function',
|
// path: '/function',
|
||||||
component: 'layout.base',
|
// component: 'layout.base',
|
||||||
meta: {
|
// meta: {
|
||||||
title: 'function',
|
// title: 'function',
|
||||||
i18nKey: 'route.function',
|
// i18nKey: 'route.function',
|
||||||
icon: 'icon-park-outline:all-application',
|
// icon: 'icon-park-outline:all-application',
|
||||||
order: 1002,
|
// order: 1002,
|
||||||
roles: ['super']
|
// roles: ['super']
|
||||||
},
|
// },
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
name: 'function_hide-child',
|
// name: 'function_hide-child',
|
||||||
path: '/function/hide-child',
|
// path: '/function/hide-child',
|
||||||
meta: {
|
// meta: {
|
||||||
title: 'function_hide-child',
|
// title: 'function_hide-child',
|
||||||
i18nKey: 'route.function_hide-child',
|
// i18nKey: 'route.function_hide-child',
|
||||||
icon: 'material-symbols:filter-list-off',
|
// icon: 'material-symbols:filter-list-off',
|
||||||
order: 2
|
// order: 2
|
||||||
},
|
// },
|
||||||
redirect: '/function/hide-child/one',
|
// redirect: '/function/hide-child/one',
|
||||||
children: [
|
// children: [
|
||||||
{
|
// {
|
||||||
name: 'function_hide-child_one',
|
// name: 'function_hide-child_one',
|
||||||
path: '/function/hide-child/one',
|
// path: '/function/hide-child/one',
|
||||||
component: 'view.function_hide-child_one',
|
// component: 'view.function_hide-child_one',
|
||||||
meta: {
|
// meta: {
|
||||||
title: 'function_hide-child_one',
|
// title: 'function_hide-child_one',
|
||||||
i18nKey: 'route.function_hide-child_one',
|
// i18nKey: 'route.function_hide-child_one',
|
||||||
icon: 'material-symbols:filter-list-off',
|
// icon: 'material-symbols:filter-list-off',
|
||||||
hideInMenu: true,
|
// hideInMenu: true,
|
||||||
activeMenu: 'function_hide-child'
|
// activeMenu: 'function_hide-child'
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: 'function_hide-child_three',
|
// name: 'function_hide-child_three',
|
||||||
path: '/function/hide-child/three',
|
// path: '/function/hide-child/three',
|
||||||
component: 'view.function_hide-child_three',
|
// component: 'view.function_hide-child_three',
|
||||||
meta: {
|
// meta: {
|
||||||
title: 'function_hide-child_three',
|
// title: 'function_hide-child_three',
|
||||||
i18nKey: 'route.function_hide-child_three',
|
// i18nKey: 'route.function_hide-child_three',
|
||||||
hideInMenu: true,
|
// hideInMenu: true,
|
||||||
activeMenu: 'function_hide-child'
|
// activeMenu: 'function_hide-child'
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: 'function_hide-child_two',
|
// name: 'function_hide-child_two',
|
||||||
path: '/function/hide-child/two',
|
// path: '/function/hide-child/two',
|
||||||
component: 'view.function_hide-child_two',
|
// component: 'view.function_hide-child_two',
|
||||||
meta: {
|
// meta: {
|
||||||
title: 'function_hide-child_two',
|
// title: 'function_hide-child_two',
|
||||||
i18nKey: 'route.function_hide-child_two',
|
// i18nKey: 'route.function_hide-child_two',
|
||||||
hideInMenu: true,
|
// hideInMenu: true,
|
||||||
activeMenu: 'function_hide-child'
|
// activeMenu: 'function_hide-child'
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: 'function_multi-tab',
|
// name: 'function_multi-tab',
|
||||||
path: '/function/multi-tab',
|
// path: '/function/multi-tab',
|
||||||
component: 'view.function_multi-tab',
|
// component: 'view.function_multi-tab',
|
||||||
meta: {
|
// meta: {
|
||||||
title: 'function_multi-tab',
|
// title: 'function_multi-tab',
|
||||||
i18nKey: 'route.function_multi-tab',
|
// i18nKey: 'route.function_multi-tab',
|
||||||
icon: 'ic:round-tab',
|
// icon: 'ic:round-tab',
|
||||||
multiTab: true,
|
// multiTab: true,
|
||||||
hideInMenu: true,
|
// hideInMenu: true,
|
||||||
activeMenu: 'function_tab'
|
// activeMenu: 'function_tab'
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: 'function_request',
|
// name: 'function_request',
|
||||||
path: '/function/request',
|
// path: '/function/request',
|
||||||
component: 'view.function_request',
|
// component: 'view.function_request',
|
||||||
meta: {
|
// meta: {
|
||||||
title: 'function_request',
|
// title: 'function_request',
|
||||||
i18nKey: 'route.function_request',
|
// i18nKey: 'route.function_request',
|
||||||
icon: 'carbon:network-overlay',
|
// icon: 'carbon:network-overlay',
|
||||||
order: 3
|
// order: 3
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: 'function_super-page',
|
// name: 'function_super-page',
|
||||||
path: '/function/super-page',
|
// path: '/function/super-page',
|
||||||
component: 'view.function_super-page',
|
// component: 'view.function_super-page',
|
||||||
meta: {
|
// meta: {
|
||||||
title: 'function_super-page',
|
// title: 'function_super-page',
|
||||||
i18nKey: 'route.function_super-page',
|
// i18nKey: 'route.function_super-page',
|
||||||
icon: 'ic:round-supervisor-account',
|
// icon: 'ic:round-supervisor-account',
|
||||||
order: 5,
|
// order: 5,
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: 'function_tab',
|
// name: 'function_tab',
|
||||||
path: '/function/tab',
|
// path: '/function/tab',
|
||||||
component: 'view.function_tab',
|
// component: 'view.function_tab',
|
||||||
meta: {
|
// meta: {
|
||||||
title: 'function_tab',
|
// title: 'function_tab',
|
||||||
i18nKey: 'route.function_tab',
|
// i18nKey: 'route.function_tab',
|
||||||
icon: 'ic:round-tab',
|
// icon: 'ic:round-tab',
|
||||||
order: 1
|
// order: 1
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: 'function_toggle-auth',
|
// name: 'function_toggle-auth',
|
||||||
path: '/function/toggle-auth',
|
// path: '/function/toggle-auth',
|
||||||
component: 'view.function_toggle-auth',
|
// component: 'view.function_toggle-auth',
|
||||||
meta: {
|
// meta: {
|
||||||
title: 'function_toggle-auth',
|
// title: 'function_toggle-auth',
|
||||||
i18nKey: 'route.function_toggle-auth',
|
// i18nKey: 'route.function_toggle-auth',
|
||||||
icon: 'ic:round-construction',
|
// icon: 'ic:round-construction',
|
||||||
order: 4
|
// order: 4
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: 'about',
|
// name: 'about',
|
||||||
path: '/about',
|
// path: '/about',
|
||||||
component: 'layout.base$view.about',
|
// component: 'layout.base$view.about',
|
||||||
meta: {
|
// meta: {
|
||||||
title: 'about',
|
// title: 'about',
|
||||||
i18nKey: 'route.about',
|
// i18nKey: 'route.about',
|
||||||
icon: 'fluent:book-information-24-regular',
|
// icon: 'fluent:book-information-24-regular',
|
||||||
order: 1003,
|
// order: 1003,
|
||||||
roles: ['super']
|
// roles: ['super']
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
name: 'dictData',
|
name: 'dictData',
|
||||||
path: '/manage/dict/dictData',
|
path: '/manage/dict/dictData',
|
||||||
|
|||||||
@@ -433,11 +433,11 @@ export function resetPassword(data: { email: string; code: string; password: str
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
/** 通过原密码修改密码 */
|
/** 通过原密码修改密码 */
|
||||||
export function updatePasswordByOld(data: { oldPassword: string; newPassword: string }) {
|
export function updatePasswordByOld(params: { oldPassword: string; newPassword: string }) {
|
||||||
return request<any>({
|
return request<any>({
|
||||||
url: '/system/user/profile/updatePwd',
|
url: '/system/user/profile/updatePwd',
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data
|
params
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/** 添加站点 */
|
/** 添加站点 */
|
||||||
|
|||||||
Reference in New Issue
Block a user