修复Ai编码生成路径不正确

This commit is contained in:
cool 2024-05-15 09:19:54 +08:00
parent 614786cdb3
commit d055e856da
2 changed files with 14 additions and 8 deletions

View File

@ -11,16 +11,16 @@
"@midwayjs/cache-manager": "^3.16.0",
"@midwayjs/core": "^3.16.0",
"@midwayjs/cron": "^3.16.0",
"@midwayjs/cross-domain": "^3.16.0",
"@midwayjs/cross-domain": "^3.16.1",
"@midwayjs/decorator": "^3.16.0",
"@midwayjs/info": "^3.16.0",
"@midwayjs/koa": "^3.16.0",
"@midwayjs/info": "^3.16.1",
"@midwayjs/koa": "^3.16.1",
"@midwayjs/logger": "^3.4.0",
"@midwayjs/static-file": "^3.16.0",
"@midwayjs/static-file": "^3.16.1",
"@midwayjs/typeorm": "^3.16.0",
"@midwayjs/upload": "^3.16.0",
"@midwayjs/validate": "^3.16.0",
"@midwayjs/view-ejs": "^3.16.0",
"@midwayjs/upload": "^3.16.1",
"@midwayjs/validate": "^3.16.1",
"@midwayjs/view-ejs": "^3.16.1",
"axios": "^1.6.8",
"cache-manager-ioredis-yet": "^2.0.4",
"decompress": "^4.2.1",
@ -46,7 +46,7 @@
"cross-env": "^7.0.3",
"jest": "^29.7.0",
"mwts": "^1.3.0",
"mwtsc": "^1.8.1",
"mwtsc": "^1.9.0",
"ts-jest": "^29.1.2",
"typescript": "~5.4.5"
},

View File

@ -302,6 +302,8 @@ export class BaseSysMenuService extends BaseService {
// 生成Entity
const entityPath = pathUtil.join(
basePath,
'..',
'src',
'modules',
module,
'entity',
@ -310,6 +312,8 @@ export class BaseSysMenuService extends BaseService {
// 生成Controller
const controllerPath = pathUtil.join(
basePath,
'..',
'src',
'modules',
module,
'controller',
@ -329,6 +333,8 @@ export class BaseSysMenuService extends BaseService {
const basePath = this.app.getBaseDir();
const configFilePath = pathUtil.join(
basePath,
'..',
'src',
'modules',
module,
'config.ts'