Explorar o código

fix: bug#6591

wzyyy %!s(int64=3) %!d(string=hai) anos
pai
achega
1b08b7231a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/pages/system/Department/Tree/tree.tsx

+ 1 - 1
src/pages/system/Department/Tree/tree.tsx

@@ -168,7 +168,7 @@ export default (props: TreeProps) => {
       setData({ sortIndex: treeData && treeData.length + 1 });
       setVisible(true);
     }
-  }, [location]);
+  }, [location, treeData]);
 
   useEffect(() => {
     queryTreeData();