fix: tree select

pull/5/MERGE
xingyu 2023-04-25 18:07:49 +08:00
parent 8b10a6f003
commit 1dec183d77
2 changed files with 2 additions and 0 deletions

View File

@ -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 })
})

View File

@ -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 })
}
})