English
dhtProductDetail.RelatedList.after
About 92 wordsLess than 1 minute
2026-05-18
This event is called after the OrderPass product detail page receives the response from FHH/EM6HNCRM/API/v1/object/ProductObj/controller/RelatedList. It can post-process backend response data before display.
Parameters
| Parameter | Description | Type |
|---|---|---|
| params | API response data. The response result is stored in params.data. | Object |
| pluginService | Common plugin parameters | Object |
Return Value
| Parameter | Description | Type |
|---|---|---|
| data | Modified API response data | Object |
Basic Example
export default class Plugin {
apply() {
return [
{
event: "dhtProductDetail.RelatedList.after",
functional: this.RelatedListAfter.bind(this)
},
]
}
RelatedListAfter(params, pluginService) {
console.dir("RelatedListAfter", params)
return new Promise((resolve, reject) => {
resolve({
data: params.data || {},
});
})
}
}