mirror of
https://github.com/cool-team-official/cool-admin-midway-packages.git
synced 2026-01-20 20:38:11 +00:00
Compare commits
No commits in common. "d7721758a5540baedfb8cdf3bdb3faa718dd84c8" and "61e613bd4a6032ce7789e40516d8e04daf5cc398" have entirely different histories.
d7721758a5
...
61e613bd4a
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@cool-midway/core",
|
||||
"version": "8.0.7",
|
||||
"version": "8.0.5",
|
||||
"description": "cool-admin midway core",
|
||||
"main": "dist/index.js",
|
||||
"typings": "index.d.ts",
|
||||
|
||||
@ -87,18 +87,8 @@ export class CoolConfiguration implements ILifeCycle {
|
||||
// 实体与路径
|
||||
const eps: CoolEps = await container.getAsync(CoolEps);
|
||||
eps.init();
|
||||
await this.eventInit();
|
||||
}
|
||||
|
||||
/**
|
||||
* 事件初始化
|
||||
*/
|
||||
async eventInit() {
|
||||
this.coolEventManager.emit('onServerReady');
|
||||
const env = this.app.getEnv();
|
||||
const isMainProcess = process.env.NODE_APP_INSTANCE == '0';
|
||||
if (env == 'local' || isMainProcess) {
|
||||
this.coolEventManager.globalEmit('onServerReadyOnce', true);
|
||||
}
|
||||
this.coolEventManager.globalEmit('onServerReadyOnce', true);
|
||||
// location.clean();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user