From cf13437877728cf8f6f4789fbd41a4683b97f52e Mon Sep 17 00:00:00 2001 From: dengjia Date: Tue, 22 Jul 2025 18:00:18 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/dataItemsDialog.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/database/superior_platform_management/components/dataItemsDialog.vue b/src/views/database/superior_platform_management/components/dataItemsDialog.vue index 9d36493..8396498 100644 --- a/src/views/database/superior_platform_management/components/dataItemsDialog.vue +++ b/src/views/database/superior_platform_management/components/dataItemsDialog.vue @@ -107,10 +107,10 @@ const form = ref({ const { list: menuList } = await getBusDataItemsMenuList(); const childMenuList = ref([]); onMounted(() => { - if (props.resourceId) - childMenuList.value = menuList.filter( - (item) => item.menuId === props.resourceId - )[0].children; + if (!props.resourceId) return; + childMenuList.value = menuList.filter( + (item) => item.menuId === props.resourceId + )[0].children; fnFindByMenuId(); }); watch(