更改前端的根据部门id查询员工接口地址与后端一致

This commit is contained in:
zhoumingfa 2024-11-14 17:15:18 +08:00
parent 7b712bae71
commit 145895703d
2 changed files with 3 additions and 3 deletions

View File

@ -88,6 +88,6 @@ export const employeeApi = {
* 查询员工-根据部门id
*/
queryEmployeeByDeptId: (departmentId) => {
return getRequest(`/employee/query/dept/${departmentId}`);
return getRequest(`/employee/getAllEmployeeByDepartmentId/${departmentId}`);
},
};

View File

@ -93,6 +93,6 @@ export const employeeApi = {
// 查询员工-根据部门id
queryEmployeeByDeptId: (departmentId) => {
return getRequest(`/employee/query/dept/${departmentId}`);
return getRequest(`/employee/getAllEmployeeByDepartmentId/${departmentId}`);
},
};