Commit dba99488 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 处理招投标详情地址显示异常

parent b4fe3ee0
......@@ -86,13 +86,14 @@ export const useBidDetail = (options: OrderDetailHookProps) => {
if (code === 1000) {
setFormData(data)
if(data?.deliverAddress) {
PublicApi.getLogisticsReceiverAddressGet({id: data.deliverAddress}).then(_res => {
const { data: _data } = _res
const { provinceName, cityName, districtName, address } = _data
if(code === 1000) {
setAddress(`${provinceName}/${cityName}/${districtName}/${address}`)
}
})
// PublicApi.getLogisticsReceiverAddressGet({id: data.deliverAddress}).then(_res => {
// const { data: _data } = _res
// const { provinceName, cityName, districtName, address } = _data
// if(code === 1000) {
// setAddress(`${provinceName}/${cityName}/${districtName}/${address}`)
// }
// })
setAddress(data.deliverAddress)
}
} else {
message.error(msg)
......
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