fix: tree select
parent
8b10a6f003
commit
1dec183d77
|
@ -49,6 +49,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data
|
|||
const menuRes = await listRoleMenus(data.record.id)
|
||||
res.roleId = data.record.id
|
||||
res.menuIds = menuRes
|
||||
res.menuIds.checked = res.menuIds
|
||||
setFieldsValue({ ...res })
|
||||
})
|
||||
|
||||
|
|
|
@ -48,6 +48,7 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data
|
|||
|
||||
if (unref(isUpdate)) {
|
||||
const res = await getTenantPackage(data.record.id)
|
||||
res.menuIds.checked = res.menuIds
|
||||
setFieldsValue({ ...res })
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue