English
getDetailRst
About 113 wordsLess than 1 minute
2025-09-22
This method synchronously returns the complete data provided by the current detail object interface.
This method synchronously returns the complete data provided by the current detail object interface.

Parameters
None
Return Value
Only some fields are listed below.
| Field | Description | Type |
|---|---|---|
| data | Detail object data | Object |
| describe | Detail object metadata | Object |
| layout | Detail object layout | Object |
| Other fields | — | — |
Code Example
Inside the plugin:
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
return [
{
event: 'detail.render.before',
functional: function (pluginExecResult, options) {
console.log('custom plugin: detail.render.before exec')
// Get the complete data returned by the current detail object interface
console.log(context.getDetailRst())
}
}
]
}
}
}