修改数据库初始化方式

This commit is contained in:
COOL 2024-07-19 16:10:07 +08:00
parent da27dfaee5
commit 2160dbe4e3
3 changed files with 8 additions and 1 deletions

View File

@ -4,7 +4,7 @@
"description": "一个项目用COOL就够了",
"private": true,
"dependencies": {
"@cool-midway/core": "^7.1.19",
"@cool-midway/core": "^7.1.20",
"@cool-midway/rpc": "^7.0.0",
"@cool-midway/task": "^7.0.0",
"@midwayjs/bootstrap": "^3.16.0",

View File

@ -32,6 +32,8 @@ export default {
eps: true,
// 是否自动导入模块数据库
initDB: true,
// 判断是否初始化的方式
initJudge: 'db',
// 是否自动导入模块菜单
initMenu: true,
} as CoolConfig,

View File

@ -32,6 +32,11 @@ export class BaseAppEvent {
this.checkKeys();
}
@Event('onServerReady')
async onServerReady() {
this.coreLogger.info(`服务启动成功,端口:${this.port}`);
}
/**
*
*/