修复配置注入错误

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 { import {
CoolController, CoolController,
BaseController, BaseController,
@ -24,7 +24,7 @@ export class BaseAppCommController extends BaseController {
@Inject() @Inject()
ctx: Context; ctx: Context;
@Inject('module.base.allowKeys') @Config('module.base.allowKeys')
allowKeys: string[]; allowKeys: string[];
@Inject() @Inject()