English
appFramework.bootstrap.before
About 118 wordsLess than 1 minute
2026-08-10
Fired before the application starts.
Usage
Perform additional business actions before the application starts, including but not limited to:
- Preload necessary data or resources
- Initialize application settings and configuration
- Display user guidance or prompt messages
Parameters
| Parameter | Description | Type |
|---|---|---|
| Common Parameters | See details | -- |
| options | Parameters required for application rendering | Object |
options
| Parameter | Description | Type |
|---|---|---|
| appId | Application appId | String |
| parameters | Parameters required to render the first menu page | Array |
| component | Component name to render | String |
| route | Page path for special business (e.g. bi) | String |
Basic Example
export default class Plugin {
apply() {
return [{
event: 'appFramework.bootstrap.before',
functional: this.bootstrapBefore.bind(this)
}]
}
bootstrapBefore(plugin, { options }) {
console.log(options.appId);
console.log(options.component);
return Promise.resolve();
}
}