角色页面中增加了新增与删除角色时调用后端的过程;对显示效果进行了微调

This commit is contained in:
GYYM
2024-10-24 13:24:54 +08:00
parent 3af786876e
commit 3c11b85ce3
7 changed files with 54 additions and 27 deletions

View File

@@ -20,7 +20,7 @@ export const getRoleList = (params: Role.ReqRoleParams) => {
// 新增角色
export const addRole = (params: { id: string }) => {
return http.post(`${rePrefix}/role/add`, params)
return http.post(`/RoleList_Add`, params)
}
// 批量添加角色
@@ -35,7 +35,7 @@ export const editRole = (params: { id: string }) => {
// 删除角色
export const deleteRole = (params: { id: string[] }) => {
return http.post(`${rePrefix}/role/delete`, params)
return http.post(`/RoleList_Del`, params)
}
// 切换角色状态