Sfoglia il codice sorgente

修改默认选中提交人

Renxy 2 anni fa
parent
commit
6558d5cea7
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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