From 38a6693468ec2893651223890055b57f1ef975e7 Mon Sep 17 00:00:00 2001 From: cool Date: Thu, 16 May 2024 10:20:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E4=BE=9D=E8=B5=96=E5=88=B0?= =?UTF-8?q?=E6=9C=80=E6=96=B0=EF=BC=8C=E7=94=9F=E6=88=90=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E4=B8=8D=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/modules/base/event/app.ts | 1 + src/modules/user/event/app.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 534c228..9efc803 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "cross-env": "^7.0.3", "jest": "^29.7.0", "mwts": "^1.3.0", - "mwtsc": "^1.9.0", + "mwtsc": "^1.9.1", "ts-jest": "^29.1.2", "typescript": "~5.4.5" }, diff --git a/src/modules/base/event/app.ts b/src/modules/base/event/app.ts index 1daa065..91b58ee 100644 --- a/src/modules/base/event/app.ts +++ b/src/modules/base/event/app.ts @@ -27,6 +27,7 @@ export class BaseAppEvent { @Event('onMenuInit') async onMenuInit() { + if (this.app.getEnv() != 'local') return; this.checkConfig(); this.checkKeys(); } diff --git a/src/modules/user/event/app.ts b/src/modules/user/event/app.ts index 41e4f05..d7861f6 100644 --- a/src/modules/user/event/app.ts +++ b/src/modules/user/event/app.ts @@ -21,6 +21,7 @@ export class UserAppEvent { @Event('onMenuInit') async onMenuInit() { + if (this.app.getEnv() != 'local') return; this.checkConfig(); }