diff --git a/src/views/system/role/RoleMenuModal.vue b/src/views/system/role/RoleMenuModal.vue index 38356796..42220139 100644 --- a/src/views/system/role/RoleMenuModal.vue +++ b/src/views/system/role/RoleMenuModal.vue @@ -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 }) }) diff --git a/src/views/system/tenantPackage/TenantPackageModal.vue b/src/views/system/tenantPackage/TenantPackageModal.vue index bd4aef65..156c7c76 100644 --- a/src/views/system/tenantPackage/TenantPackageModal.vue +++ b/src/views/system/tenantPackage/TenantPackageModal.vue @@ -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 }) } })