From 17fc21cf1e690cdd226786fc43323d77c0a6b844 Mon Sep 17 00:00:00 2001 From: "851673013@qq.com" <851673013@qq.com> Date: Fri, 1 Jul 2022 17:57:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=99=BA=E8=83=BD=E7=AE=97=E6=B3=95bug-?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Algorithm/AlgorithmNavigation.vue | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) 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) }