mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2026-01-07 20:18:12 +00:00
支持设置是否初始化模块
This commit is contained in:
parent
fd356b4ee9
commit
d0901f517e
@ -15,7 +15,7 @@
|
||||
"lodash": "^4.17.21",
|
||||
"md5": "^2.3.0",
|
||||
"midwayjs-cool-alipay": "^1.0.3",
|
||||
"midwayjs-cool-core": "^3.1.3",
|
||||
"midwayjs-cool-core": "^3.1.4",
|
||||
"midwayjs-cool-oss": "^1.0.12",
|
||||
"midwayjs-cool-queue": "^1.0.6",
|
||||
"midwayjs-cool-redis": "^1.0.9",
|
||||
@ -44,7 +44,7 @@
|
||||
"node": ">=12.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "egg-scripts start --daemon --title=cool-admin-midway --framework=@midwayjs/web --port=8001 --sticky",
|
||||
"start": "egg-scripts start --title=cool-admin-midway --framework=@midwayjs/web --port=8001 --sticky",
|
||||
"stop": "egg-scripts stop --title=cool-admin-midway",
|
||||
"start_build": "npm run build && cross-env NODE_ENV=development midway-bin dev",
|
||||
"docker": "egg-scripts start --title=cool-admin-midway --framework=@midwayjs/web --sticky",
|
||||
@ -81,4 +81,4 @@
|
||||
},
|
||||
"author": "cool-js.com",
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import { EggAppConfig, EggAppInfo, PowerPartial } from 'egg';
|
||||
import { CoolConfig } from 'midwayjs-cool-core';
|
||||
import * as path from 'path';
|
||||
|
||||
export type DefaultConfig = PowerPartial<EggAppConfig>;
|
||||
@ -48,6 +49,8 @@ export default (appInfo: EggAppInfo) => {
|
||||
|
||||
// cool-admin特有的配置
|
||||
config.cool = {
|
||||
// 是否初始化模块数据库
|
||||
initDB: true,
|
||||
// 全局路由前缀
|
||||
router: {
|
||||
prefix: '',
|
||||
@ -76,7 +79,7 @@ export default (appInfo: EggAppInfo) => {
|
||||
// 文件路径前缀 本地上传模式下 有效
|
||||
domain: 'https://admin.cool-js.cool',
|
||||
},
|
||||
};
|
||||
} as CoolConfig;
|
||||
|
||||
// 文件上传
|
||||
config.multipart = {
|
||||
|
||||
@ -24,5 +24,11 @@ export default (appInfo: EggAppInfo) => {
|
||||
},
|
||||
};
|
||||
|
||||
// cool配置
|
||||
config.cool = {
|
||||
// 是否初始化模块数据库
|
||||
initDB: false,
|
||||
};
|
||||
|
||||
return config;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user