lanjianrong 5 년 전
부모
커밋
de49693a8c
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/pages/Customer/Company/components/CompanyDetail/CompanyTabList.jsx

+ 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 })