mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2024-11-01 22:20:30 +08:00
修复配置注入错误
This commit is contained in:
parent
8b9fd0f135
commit
2d538a7a62
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user