2
0

fix: 修复修改角色的菜单权限bug

This commit is contained in:
caiyuchao
2025-01-08 15:34:07 +08:00
parent b9026be4b1
commit 168e4bf1b8
2 changed files with 18 additions and 9 deletions

View File

@@ -83,7 +83,7 @@ function closeDrawer() {
async function handleSubmit() {
await validate();
const menuIds = menuAuthRef.value?.checkedKeys();
const menuIds = transformMenuChildWithRootIds(menuAuthRef.value?.tree || [], model.value.menuIds);
const {error} = await (props.operateType === 'edit' ? doPutRole : doPostRole)({
...model.value,