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(); }