Update index.md

This commit is contained in:
Zhou 2022-11-06 09:01:55 +08:00 committed by GitHub
parent ac0348c103
commit 825d8481cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ import { InstallOptions, Plugin } from '@nocobase/server';
export class MyPlugin extends Plugin { export class MyPlugin extends Plugin {
afterAdd() { afterAdd() {
// 插件 pm.add 注册进来之后主要用于放置 app beforeLoad 事件的监听 // 插件 pm.add 注册进来之后主要用于放置 app beforeLoad 事件的监听
this.app.on('beforeLoad'); this.app.on('beforeLoad');
} }
beforeLoad() { beforeLoad() {