修复配置注入错误

This commit is contained in:
cool 2023-11-07 10:56:46 +08:00
parent 8b9fd0f135
commit 2d538a7a62

View File

@ -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()