English
logs.parse.before
About 169 wordsLess than 1 minute
2025-09-22
Registers a callback function that is executed before the modification log data on the detail page is parsed. Inside the callback, you can append custom logic before the modification log is parsed.
- Registers a callback function that is executed before the modification log data on the detail page is parsed. Refreshing the detail page will also trigger the callback.
- Inside the callback, you can append custom logic before the modification log data is parsed on the detail page.
apply() {
return [
{
event: 'detail.logs.parse.before',
functional: function (pluginExecResult, options) {
// Logic to execute before the modification log data on the detail page is parsed
const {detailInfo, logs} = options || {}
console.log('detail.logs.parse.before', detailInfo, logs)
const hookLogs = logs
return {
hookLogs
}
}
}
]
}Parameters
For the common event parameters pluginExecResult and options, refer to the corresponding documentation.
- Additional description of
options
| Property | Description | Type |
|---|---|---|
| detailInfo | Complete detail object data | Object |
| logs | Modification log data before customization | Array |
Return Value
| Field | Description | Type |
|---|---|---|
| hookLogs | Modification log data after customization | Array |
