Explorar el Código

fix: bug#6591

wzyyy hace 3 años
padre
commit
1b08b7231a
Se han modificado 1 ficheros con 1 adiciones y 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();