From 689d7b3f1ea347e5327dffd3b97dec9f32d9c497 Mon Sep 17 00:00:00 2001 From: cool Date: Tue, 26 Mar 2024 15:15:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8F=92=E4=BB=B6=E5=B0=B1?= =?UTF-8?q?=E7=BB=AA=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin-cli/package.json | 2 +- plugin-cli/src/index.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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() {} } /**