优化角色配置请求格式

This commit is contained in:
smallchill 2020-08-27 08:52:41 +08:00
parent 867ceda639
commit 6df4d276b4
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ class Role extends PureComponent {
const { dispatch } = this.props;
dispatch(
ROLE_GRANT({ roleIds: keys[0], menuIds: roleCheckedTreeKeys }, () => {
ROLE_GRANT({ roleIds: keys, menuIds: roleCheckedTreeKeys }, () => {
this.setState({
visible: false,
confirmLoading: false,

View File

@ -15,7 +15,7 @@ export async function tree(params) {
export async function grant(params) {
return request('/api/blade-system/role/grant', {
method: 'POST',
body: func.toFormData(params),
body: params,
});
}