Browse Source

feat(api): role curd

gemercheung 3 years ago
parent
commit
934125c57b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/api/system/system.ts

+ 1 - 1
src/api/system/system.ts

@@ -81,7 +81,7 @@ export const saveRoleApi = (params: SaveRoleParams) =>
   defHttp.post({ url: Api.saveRole, params: { ...params, deptIdList: [], deptId: 1 } });
 //TODO 临时deptId调试
 export const updateRoleApi = (params: SaveRoleParams) =>
-  defHttp.post({ url: Api.updateRole, params: { ...params, deptIdList: [] }, deptId: 1 });
+  defHttp.post({ url: Api.updateRole, params: { ...params, deptIdList: [], deptId: 1 } });
 
 export const deleteRoleApi = (params: (string | number)[]) =>
   defHttp.post({ url: Api.deleteRole, params: params });