Explorar el Código

修改默认选中提交人

Renxy hace 2 años
padre
commit
6558d5cea7
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/components/DDComponents/InnerContactField/index.js

+ 3 - 0
src/components/DDComponents/InnerContactField/index.js

@@ -13,6 +13,9 @@ function InnerContactField(props) {
   useEffect(() => {
     run();
   }, []);
+  useEffect(() => {
+    if (user && userList) onChange(String(user.ID));
+  }, [user, userList]);
   return (
     <Select
       showSearch