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

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

No files matched your search

@@ -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,