diff --git a/package.json b/package.json index 1305787..534c228 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/src/modules/base/service/sys/menu.ts b/src/modules/base/service/sys/menu.ts index 3d60d4a..3a71eeb 100644 --- a/src/modules/base/service/sys/menu.ts +++ b/src/modules/base/service/sys/menu.ts @@ -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'