Commit 0b7bcd97 authored by XieZhiXiong's avatar XieZhiXiong

fix: 重新选择配送方式时置空收件信息

parent c208c6ea
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-06 09:54:04
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-21 14:36:00
* @LastEditTime: 2021-01-29 14:09:18
* @Description: 换货收货地址
*/
import React from 'react';
......@@ -173,6 +173,17 @@ const ExchangeAddressInfo: React.FC<ExchangeAddressInfo> = ({
default:
break
};
if (onSubmit) {
onSubmit({
deliveryType: value,
id: undefined,
isDefault: undefined,
sendAddress: undefined,
sendUserName: undefined,
sendUserTel: undefined,
});
}
});
onFieldInputChange$('deliveryType').subscribe(fieldState => {
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-04 17:22:07
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-21 13:41:41
* @LastEditTime: 2021-01-29 14:11:59
* @Description:
*/
import React, { useState } from 'react';
......
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