Commit a258ea54 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

🐞 fix(商品询价): 修改没品牌导致报错的问题

parent 6d33b1fb
......@@ -168,7 +168,7 @@ const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => {
imgUrl: data.imgUrl,
productName: data.name,
category: data.category,
brand: data.brand.name,
brand: data.brand?.name,
unit: data.unitName,
purchaseCount: 1,
logistics: data.logistics,
......@@ -211,7 +211,7 @@ const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => {
if (res.code !== 1000) {
return
}
res.data.commodityList.forEach(item => {
res.data.commodityList.forEach((item: any) => {
inquiryListProductRequests.push({
commodityId: item.commodityId,
productId: item.id,
......
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