diff --git a/front/src/views/detailsAll/components/Algorithm/AlgorithmNavigation.vue b/front/src/views/detailsAll/components/Algorithm/AlgorithmNavigation.vue index 24ac45ca..32840092 100644 --- a/front/src/views/detailsAll/components/Algorithm/AlgorithmNavigation.vue +++ b/front/src/views/detailsAll/components/Algorithm/AlgorithmNavigation.vue @@ -119,9 +119,12 @@ 'props.dataList.infoList==============>', navList.value.filter((item) => item.name === list.value[0]) ) - select.value = navList.value.filter( - (item) => item.name === list.value[0] - )[0].key + if (navList.value.filter((item) => item.name === list.value[0])[0]) { + debugger + select.value = navList.value.filter( + (item) => item.name === list.value[0] + )[0].key + } console.log('11111111111111111111111111', list.value, navList.value) } watch( @@ -161,9 +164,11 @@ } }) if (list.value.length > 0) { - select.value = navList.value.filter( - (item) => item.name === list.value[0] - )[0].key + if (navList.value.filter((item) => item.name === list.value[0])[0]) { + select.value = navList.value.filter( + (item) => item.name === list.value[0] + )[0].key + } } console.log('11111111111111111111111111', list.value, navList.value) }