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 {
|
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()
|
||||||
|
Loading…
Reference in New Issue
Block a user