diff --git a/src/pages/ProductList/add.tsx b/src/pages/ProductList/add.tsx index dbb35b9..b24526e 100644 --- a/src/pages/ProductList/add.tsx +++ b/src/pages/ProductList/add.tsx @@ -317,9 +317,14 @@ const Detail: React.FC = () => { } } //标签 - let labelAssociationList: API.PbcProductLabelConfig_[] = [] + let labelAssociationList: API.PbcProductLabelAssociation_[] = [] if (selectedTags.length > 0) { - labelAssociationList = tags.filter(it => it.pbcId && selectedTags.includes(it.pbcId)) + labelAssociationList = tags.filter(it => it.pbcId && selectedTags.includes(it.pbcId)).map(e => { + return { + ...e, + pbcLabelId: e.pbcId + } + }) } const params: API.PbcProductDTO = { ...datas,