Commit 612acd98 authored by xiexiuxing's avatar xiexiuxing

修复冲突

parent 359e7304
......@@ -33,7 +33,7 @@ const LogisticsForm: React.FC<Iprops> = (props) => {
const [banCarriageType, setBanCarriageType] = useState(false)
const [template, setTemplate] = useState(false) // 是否必填运费模板
const { productInfoByEdit, selectCategoryId, productPriceType, isCrossBorder, sendCycle, isCrossBorder } = ProductStore
const { productInfoByEdit, selectCategoryId, productPriceType, isCrossBorder, sendCycle } = ProductStore
useEffect(() => {
//传入ref给父级
......@@ -91,9 +91,9 @@ const LogisticsForm: React.FC<Iprops> = (props) => {
useEffect(() => { logisticsForm.setFieldsValue({ sendCycle: sendCycle }) }, [sendCycle])
useEffect(() => {
if(isCrossBorder) {
if (isCrossBorder) {
logisticsForm.setFieldsValue({ deliveryType: 1 })
changeDeliveryType({target: { value: 1 }})
changeDeliveryType({ target: { value: 1 } })
}
}, [isCrossBorder])
......@@ -102,7 +102,7 @@ const LogisticsForm: React.FC<Iprops> = (props) => {
setCarriageType(1)
setIsTemplate(false)
// 跨境商品类型编辑 不重置表单
if(!isCrossBorder || !history.location.query?.id) {
if (!isCrossBorder || !history.location.query?.id) {
logisticsForm.resetFields()
}
logisticsForm.setFieldsValue({ deliveryType: e.target.value })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment