lanjianrong 5 лет назад
Родитель
Сommit
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: {},
     params: {},
     visible: false
     visible: false
   })
   })
+  useEffect(() => {
+    setState({ ...state, params: { ...state.params, customerId } })
+  }, [customerId])
   const handleAddClient = async values => {
   const handleAddClient = async values => {
     // 客户id
     // 客户id
     const payload = formatValues({ ...values, customerId })
     const payload = formatValues({ ...values, customerId })