diff --git a/packages/vant-use/src/useRelation/useChildren.ts b/packages/vant-use/src/useRelation/useChildren.ts index 53de68d75..dce0b72b7 100644 --- a/packages/vant-use/src/useRelation/useChildren.ts +++ b/packages/vant-use/src/useRelation/useChildren.ts @@ -61,7 +61,7 @@ export function useChildren(key: string | symbol) { const internalChildren: ComponentInternalInstance[] = reactive([]); const parent = getCurrentInstance()!; - const linkChildren = (value: any) => { + const linkChildren = (value?: any) => { const link = (child: ComponentInternalInstance) => { if (child.proxy) { internalChildren.push(child);