English
detail.render.before
About 118 wordsLess than 1 minute
2025-12-16
This hook is triggered before the detail page is rendered. Execute extra business actions before rendering the object detail page.
Parameters
| Parameter | Description | Type | Allowed Values | Default |
|---|---|---|---|---|
| Common parameters | See details | -- | -- | -- |
| data | Object detail data returned by the interface, including detail layout, detail data, etc. | Object | -- | -- |
Return Value
| Parameter | Description | Type | Allowed Values | Default |
|---|---|---|---|---|
| data | Data required for rendering the object detail page, following the data structure returned by the interface | Object | -- | -- |
Basic Example
Basic Usage:
export default class Plugin {
apply() {
return [{
event: 'detail.render.before',
functional: this.renderBefore.bind(this)
}]
}
renderBefore(context, plugin) {
console.log(context.data);
return Promise.resolve();
}
}Notes
1. Refreshing the detail page will also trigger this hook
