fix: 修复修改角色的菜单权限bug
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user