diff --git a/frontend/src/api/role/role.ts b/frontend/src/api/role/role.ts index 2cde151..dcd57f7 100644 --- a/frontend/src/api/role/role.ts +++ b/frontend/src/api/role/role.ts @@ -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) } // 切换角色状态 diff --git a/frontend/src/views/authority/role/components/roleUnit.vue b/frontend/src/views/authority/role/components/roleUnit.vue index 36d2cd9..1483d04 100644 --- a/frontend/src/views/authority/role/components/roleUnit.vue +++ b/frontend/src/views/authority/role/components/roleUnit.vue @@ -3,13 +3,13 @@
- - + + - - + + - + - - + +