diff --git a/src/views/system/tenantPackage/form.vue b/src/views/system/tenantPackage/form.vue index e90222e7..d642402c 100644 --- a/src/views/system/tenantPackage/form.vue +++ b/src/views/system/tenantPackage/form.vue @@ -111,7 +111,7 @@ const handleCheckedTreeNodeAll = () => { } // 全部(展开/折叠)TODO:for循环全部展开和折叠树组件数据 const handleCheckedTreeExpand = () => { - const nodes = treeRef.value!.store.nodesMap + const nodes = treeRef.value?.store.nodesMap for (let node in nodes) { nodes[node].expanded = !nodes[node].expanded }