From 1dec183d77d77e35f66981733082d16744126d75 Mon Sep 17 00:00:00 2001 From: xingyu Date: Tue, 25 Apr 2023 18:07:49 +0800 Subject: [PATCH] fix: tree select --- src/views/system/role/RoleMenuModal.vue | 1 + src/views/system/tenantPackage/TenantPackageModal.vue | 1 + 2 files changed, 2 insertions(+) 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 }) } })