新增 onServerReadyOnce 事件,Cluster模式下也只触发一次

This commit is contained in:
COOL 2025-06-20 11:51:03 +08:00
parent bb52aea406
commit d7721758a5
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@cool-midway/core", "name": "@cool-midway/core",
"version": "8.0.6", "version": "8.0.7",
"description": "cool-admin midway core", "description": "cool-admin midway core",
"main": "dist/index.js", "main": "dist/index.js",
"typings": "index.d.ts", "typings": "index.d.ts",

View File

@ -87,6 +87,7 @@ export class CoolConfiguration implements ILifeCycle {
// 实体与路径 // 实体与路径
const eps: CoolEps = await container.getAsync(CoolEps); const eps: CoolEps = await container.getAsync(CoolEps);
eps.init(); eps.init();
await this.eventInit();
} }
/** /**