diff --git a/core/package.json b/core/package.json index d0fe2fe..d5939fa 100644 --- a/core/package.json +++ b/core/package.json @@ -1,6 +1,6 @@ { "name": "@cool-midway/core", - "version": "8.0.4", + "version": "8.0.5", "description": "cool-admin midway core", "main": "dist/index.js", "typings": "index.d.ts", diff --git a/core/src/configuration.ts b/core/src/configuration.ts index 290a3f8..4f78b39 100644 --- a/core/src/configuration.ts +++ b/core/src/configuration.ts @@ -50,6 +50,7 @@ export class CoolConfiguration implements ILifeCycle { async onReady(container: IMidwayContainer) { this.coolEventManager.emit('onReady'); + this.coolEventManager.globalEmit('onReadyOnce', true); // 处理模块配置 await container.getAsync(CoolModuleConfig); // 常用函数处理 @@ -87,6 +88,7 @@ export class CoolConfiguration implements ILifeCycle { const eps: CoolEps = await container.getAsync(CoolEps); eps.init(); this.coolEventManager.emit('onServerReady'); + this.coolEventManager.globalEmit('onServerReadyOnce', true); // location.clean(); } }