Commit 01304ce5 authored by GuanHua's avatar GuanHua

fix: 修复修改发票信息无法修改到地址的问题

parent 578705e9
......@@ -40,8 +40,8 @@ const AddInvoice: React.FC<AddAddressPropsType> = (props) => {
/**
* @description: Form保存
* @param {type}
* @return:
* @param {type}
* @return:
*/
const formSubmit = (values) => {
values.isDefault ? values.isDefault = 1 : values.isDefault = 0
......@@ -174,7 +174,7 @@ const AddInvoice: React.FC<AddAddressPropsType> = (props) => {
/>
<Field
title="地址"
name="addres"
name="address"
maxLength={40}
x-component="Input"
/>
......
......@@ -241,7 +241,7 @@ const Order: React.FC<OrderPropsType> = (props) => {
setLogisticsFee(Number(res.data))
} catch (error) {
console.log(error)
}
}
}
}
}
......
......@@ -79,7 +79,7 @@ const Invoice: React.FC<InvoicePropsType> = (props) => {
return new Promise((resolve, reject) => {
PublicApi.postSettleAccountsInvoiceMessageDelete({ id }).then(res => {
if (res.code === 1000) {
resolve()
resolve(true)
fetchInvoiceList()
}
}).catch(() => {
......
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