bug修复

dev
dengjia 2025-07-22 18:00:18 +08:00
parent 200fe337ef
commit cf13437877
1 changed files with 4 additions and 4 deletions

View File

@ -107,10 +107,10 @@ const form = ref({
const { list: menuList } = await getBusDataItemsMenuList(); const { list: menuList } = await getBusDataItemsMenuList();
const childMenuList = ref([]); const childMenuList = ref([]);
onMounted(() => { onMounted(() => {
if (props.resourceId) if (!props.resourceId) return;
childMenuList.value = menuList.filter( childMenuList.value = menuList.filter(
(item) => item.menuId === props.resourceId (item) => item.menuId === props.resourceId
)[0].children; )[0].children;
fnFindByMenuId(); fnFindByMenuId();
}); });
watch( watch(