From d055e856da7f51266733d627a04af8bb5a83f5f0 Mon Sep 17 00:00:00 2001 From: cool Date: Wed, 15 May 2024 09:19:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DAi=E7=BC=96=E7=A0=81=E7=94=9F?= =?UTF-8?q?=E6=88=90=E8=B7=AF=E5=BE=84=E4=B8=8D=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 16 ++++++++-------- src/modules/base/service/sys/menu.ts | 6 ++++++ 2 files changed, 14 insertions(+), 8 deletions(-) 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'