|
|
@ -76,7 +76,7 @@ const ProductsTree = ({ onNodeSelect, ...props }) => {
|
|
|
|
const lgc_map = product.lgc_details.reduce((rlgc, clgc) => ({...rlgc, [clgc.lgc]: clgc}), {});
|
|
|
|
const lgc_map = product.lgc_details.reduce((rlgc, clgc) => ({...rlgc, [clgc.lgc]: clgc}), {});
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
// title: product.info.title || lgc_map?.['2']?.title || lgc_map?.['1']?.title || '',
|
|
|
|
// title: product.info.title || lgc_map?.['2']?.title || lgc_map?.['1']?.title || '',
|
|
|
|
title: `【${product.info.city_name}】` + (product.info.title || lgc_map?.['2']?.title || lgc_map?.['1']?.title || ''),
|
|
|
|
title: `【${product.info.city_name}】` + (product.info.title || lgc_map?.['2']?.title || lgc_map?.['1']?.title || product.info.product_title || ''),
|
|
|
|
// key: `${ele.value}-${product.info.id}`,
|
|
|
|
// key: `${ele.value}-${product.info.id}`,
|
|
|
|
key: product.info.id,
|
|
|
|
key: product.info.id,
|
|
|
|
_raw: product,
|
|
|
|
_raw: product,
|
|
|
|