diff --git a/plugin-cli/package.json b/plugin-cli/package.json index c095a7a..be82352 100644 --- a/plugin-cli/package.json +++ b/plugin-cli/package.json @@ -1,6 +1,6 @@ { "name": "@cool-midway/plugin-cli", - "version": "7.1.7", + "version": "7.1.8", "description": "cool-admin midway plugin", "main": "dist/index.js", "scripts": { diff --git a/plugin-cli/src/index.ts b/plugin-cli/src/index.ts index c2f0186..e58e8e9 100644 --- a/plugin-cli/src/index.ts +++ b/plugin-cli/src/index.ts @@ -101,7 +101,13 @@ export abstract class BasePlugin { this.cache = other.cache; this.pluginService = other.pluginService; } + await this.ready(); } + + /** + * 插件就绪 + */ + async ready() {} } /**