diff --git a/src/pages/activity/activityInfo/components/CreateForm.jsx b/src/pages/activity/activityInfo/components/CreateForm.jsx index 78b5cd7..1c946dd 100644 --- a/src/pages/activity/activityInfo/components/CreateForm.jsx +++ b/src/pages/activity/activityInfo/components/CreateForm.jsx @@ -21,7 +21,7 @@ import { MinusCircleOutlined, PlusOutlined, UploadOutlined } from '@ant-design/i import { GetActivityConfiguration, GetCouponCanUseCountAndLimit, GetGoodsInfo, GetCosRequestURL } from '../service'; import axios from 'axios'; const CreateForm = (props) => { - const [form] = Form.useForm(); + const { Option, OptGroup } = Select; const [options, setoptions] = useState(); const [current, setCurrent] = React.useState(0); @@ -176,7 +176,7 @@ const CreateForm = (props) => { onProgress({ percent: Math.round(loaded / total * 100).toFixed(2) }, file); }, }).then(response => { - form.setFieldsValue({ activityImg: r.seeUrl }); + props.form.setFieldsValue({ activityImg: r.seeUrl }); if (response.status == 200 || response.statusText == 'OK') { setimgUrl(r.seeUrl) } @@ -208,10 +208,10 @@ const CreateForm = (props) => { >