部门管理部门列表

This commit is contained in:
禺狨
2023-03-07 10:49:31 +08:00
parent 872ce3e5e9
commit 3f29132a80
3 changed files with 92 additions and 61 deletions

View File

@@ -26,7 +26,7 @@ export function updateDepartment(
parentId: number,
sort: number
) {
return client.post(`/backend/v1/department/${id}`, {
return client.put(`/backend/v1/department/${id}`, {
name,
parent_id: parentId,
sort,