diff --git a/packages/client/src/pages/components.vue b/packages/client/src/pages/components.vue index 65a74b5b..ab5f029d 100644 --- a/packages/client/src/pages/components.vue +++ b/packages/client/src/pages/components.vue @@ -166,11 +166,9 @@ function inspectComponentInspector() { else { treeNodeIdLinkedList.value.forEach((item) => { let index = item.indexOf(data.id) - if (index > -1) { - while (index >= 0) { - componentTreeCollapseMap.value[item[index]] = true - index-- - } + while (index >= 0) { + componentTreeCollapseMap.value[item[index]] = true + index-- } }) }