From a5604bb96796b9ec0090d3ec0c6d32d13d0df740 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Fri, 29 Oct 2021 14:50:25 +0800 Subject: [PATCH] fix: tree-select not update when empty --- components/vc-tree-select/OptionList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/vc-tree-select/OptionList.tsx b/components/vc-tree-select/OptionList.tsx index 1b87a60da..6d3ec67e4 100644 --- a/components/vc-tree-select/OptionList.tsx +++ b/components/vc-tree-select/OptionList.tsx @@ -41,7 +41,7 @@ export default defineComponent({ const memoOptions = useMemo( () => props.options, [() => props.open, () => props.options], - (next, prev) => next[0] && prev[1] !== next[1], + next => next[0], ); const valueKeys = computed(() => {