diff --git a/src/cascader/hooks.tsx b/src/cascader/hooks.tsx index 182884710..873e93fda 100644 --- a/src/cascader/hooks.tsx +++ b/src/cascader/hooks.tsx @@ -82,8 +82,8 @@ export const useCascaderContext = (props: TdCascaderProps) => { const { disabled, options = [], keys = {}, checkStrictly = false, lazy = true, load, valueMode = 'onlyLeaf' } = props; useEffect(() => { - if (!options.length) return; if (!treeStore) { + if (!options.length) return; const store = new TreeStore({ keys: { ...keys,