菜单权限配置:没有更改保存拿不到半选id问题
parent
6207d77479
commit
9b82528cf4
|
|
@ -81,7 +81,8 @@ const DistributionMenuModalComponent = (props) => {
|
||||||
setMenuListTree(menuListTree);
|
setMenuListTree(menuListTree);
|
||||||
|
|
||||||
const { data } = await props["appMenuGetAlreadyDistributionMenu"]({ roleId: props.info.roleId });
|
const { data } = await props["appMenuGetAlreadyDistributionMenu"]({ roleId: props.info.roleId });
|
||||||
setCheckedKeys(data.map(item => item.menuId));
|
setCheckedKeys(data.checkMenuIdList);
|
||||||
|
halfCheckedKeys.current = data.halfCheckMenuIdList;
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue