菜单管理
This commit is contained in:
@@ -31,13 +31,13 @@ export const deleteRole = (params: { id: string[] }) => {
|
||||
|
||||
// 获取资源
|
||||
export const getFunctionList = () => {
|
||||
return http.get<Function.ResFunction>(`/sysFunction/functionTree`)
|
||||
return http.get<Function.ResFunction>(`/sysFunction/getTree?keyword=`)
|
||||
}
|
||||
|
||||
|
||||
//获取角色id绑定的菜单
|
||||
export const getRoleFunction = (params:Role.RoleBO) => {
|
||||
return http.post(`/sysRole/getFunctionsByRoleId?id=${params.id}`)
|
||||
return http.post(`/sysFunction/getFunctionsByRoleId?id=${params.id}`)
|
||||
}
|
||||
|
||||
//角色分配菜单
|
||||
|
||||
Reference in New Issue
Block a user