From 2d538a7a627823ff5514334a965a4245238f0a55 Mon Sep 17 00:00:00 2001 From: cool Date: Tue, 7 Nov 2023 10:56:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=85=8D=E7=BD=AE=E6=B3=A8?= =?UTF-8?q?=E5=85=A5=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/base/controller/app/comm.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/base/controller/app/comm.ts b/src/modules/base/controller/app/comm.ts index e91852b..5685b67 100644 --- a/src/modules/base/controller/app/comm.ts +++ b/src/modules/base/controller/app/comm.ts @@ -1,4 +1,4 @@ -import { Provide, Inject, Get, Post, Query } from '@midwayjs/decorator'; +import { Provide, Inject, Get, Post, Query, Config } from '@midwayjs/decorator'; import { CoolController, BaseController, @@ -24,7 +24,7 @@ export class BaseAppCommController extends BaseController { @Inject() ctx: Context; - @Inject('module.base.allowKeys') + @Config('module.base.allowKeys') allowKeys: string[]; @Inject()