mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2025-12-12 17:42:49 +00:00
修改数据库初始化方式
This commit is contained in:
parent
da27dfaee5
commit
2160dbe4e3
@ -4,7 +4,7 @@
|
|||||||
"description": "一个项目用COOL就够了",
|
"description": "一个项目用COOL就够了",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cool-midway/core": "^7.1.19",
|
"@cool-midway/core": "^7.1.20",
|
||||||
"@cool-midway/rpc": "^7.0.0",
|
"@cool-midway/rpc": "^7.0.0",
|
||||||
"@cool-midway/task": "^7.0.0",
|
"@cool-midway/task": "^7.0.0",
|
||||||
"@midwayjs/bootstrap": "^3.16.0",
|
"@midwayjs/bootstrap": "^3.16.0",
|
||||||
|
|||||||
@ -32,6 +32,8 @@ export default {
|
|||||||
eps: true,
|
eps: true,
|
||||||
// 是否自动导入模块数据库
|
// 是否自动导入模块数据库
|
||||||
initDB: true,
|
initDB: true,
|
||||||
|
// 判断是否初始化的方式
|
||||||
|
initJudge: 'db',
|
||||||
// 是否自动导入模块菜单
|
// 是否自动导入模块菜单
|
||||||
initMenu: true,
|
initMenu: true,
|
||||||
} as CoolConfig,
|
} as CoolConfig,
|
||||||
|
|||||||
@ -32,6 +32,11 @@ export class BaseAppEvent {
|
|||||||
this.checkKeys();
|
this.checkKeys();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Event('onServerReady')
|
||||||
|
async onServerReady() {
|
||||||
|
this.coreLogger.info(`服务启动成功,端口:${this.port}`);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 检查配置
|
* 检查配置
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user