简体中文
getDetailRst
约 157 字小于 1 分钟
2025-09-22
该方法同步返回当前详情对象接口提供的完整数据。
该方法同步返回当前详情对象接口提供的完整数据。

参数
无
返回结果
仅列举部分字段数据
| 字段 | 说明 | 类型 |
|---|---|---|
| data | 详情对象数据 | Object |
| describe | 详情对象描述 | Object |
| layout | 详情对象布局 | Object |
| 其他字段 | — | — |
代码示例
插件内:
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')
// 获取当前详情对象接口提供的完整数据
console.log(context.getDetailRst())
}
}
]
}
}
}