mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2024-11-01 14:10:29 +08:00
优化
This commit is contained in:
parent
1783e717f7
commit
5ca76f1ac8
@ -1,4 +1,5 @@
|
|||||||
import { CoolEvent, Event } from '@cool-midway/core';
|
import { CoolEvent, Event } from '@cool-midway/core';
|
||||||
|
import { CachingFactory, MidwayCache } from '@midwayjs/cache-manager';
|
||||||
import {
|
import {
|
||||||
App,
|
App,
|
||||||
Config,
|
Config,
|
||||||
@ -9,7 +10,6 @@ import {
|
|||||||
} from '@midwayjs/core';
|
} from '@midwayjs/core';
|
||||||
import { IMidwayKoaApplication } from '@midwayjs/koa';
|
import { IMidwayKoaApplication } from '@midwayjs/koa';
|
||||||
import { PLUGIN_CACHE_KEY, PluginCenterService } from '../service/center';
|
import { PLUGIN_CACHE_KEY, PluginCenterService } from '../service/center';
|
||||||
import { CachingFactory, MidwayCache } from '@midwayjs/cache-manager';
|
|
||||||
import { PluginTypesService } from '../service/types';
|
import { PluginTypesService } from '../service/types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -39,6 +39,6 @@ export class PluginAppEvent {
|
|||||||
async onServerReady() {
|
async onServerReady() {
|
||||||
await this.midwayCache.set(PLUGIN_CACHE_KEY, []);
|
await this.midwayCache.set(PLUGIN_CACHE_KEY, []);
|
||||||
this.pluginCenterService.init();
|
this.pluginCenterService.init();
|
||||||
this.pluginTypesService.reGenerate();
|
// this.pluginTypesService.reGenerate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user