|
@@ -25,7 +25,10 @@ export const getUserRole = ({ id, ...params }) =>
|
|
api.get(`/yxl-back-end/framework/uiac/account/${id}/account-role`, params);
|
|
api.get(`/yxl-back-end/framework/uiac/account/${id}/account-role`, params);
|
|
|
|
|
|
export const updateUserRole = ({ id, ...params }) =>
|
|
export const updateUserRole = ({ id, ...params }) =>
|
|
- api.put(`/yxl-back-end/framework/uiac/account/${id}/account-role`, params);
|
|
|
|
|
|
+ api.put(
|
|
|
|
+ `/yxl-back-end/framework/uiac/account/${id}/account-role`,
|
|
|
|
+ params.roles
|
|
|
|
+ );
|
|
|
|
|
|
export const lockAccount = id =>
|
|
export const lockAccount = id =>
|
|
api.del(`/yxl-back-end/framework/uiac/account/is-locked/${id}`, {});
|
|
api.del(`/yxl-back-end/framework/uiac/account/is-locked/${id}`, {});
|