Explorar o código

修改默认选中提交人

Renxy %!s(int64=2) %!d(string=hai) anos
pai
achega
6558d5cea7
Modificáronse 1 ficheiros con 3 adicións e 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