lanjianrong 5 years atrás
parent
commit
de49693a8c

+ 3 - 0
src/pages/Customer/Company/components/CompanyDetail/CompanyTabList.jsx

@@ -38,6 +38,9 @@ const CompanyTabList = ({ initData, customerId }) => {
     params: {},
     visible: false
   })
+  useEffect(() => {
+    setState({ ...state, params: { ...state.params, customerId } })
+  }, [customerId])
   const handleAddClient = async values => {
     // 客户id
     const payload = formatValues({ ...values, customerId })