Commit 0b49b8c2 authored by maggie's avatar maggie

services添加默认值

parent 0bf31793
...@@ -31,7 +31,7 @@ async function formatBaseInfos(context: IContext<IParams>, baseInfos: ICheckCont ...@@ -31,7 +31,7 @@ async function formatBaseInfos(context: IContext<IParams>, baseInfos: ICheckCont
} }
// 注入服务 // 注入服务
export default function services(services: Constructor[]) { export default function services(services: Constructor[] = []) {
return (target: Object, name: string, descriptor: PropertyDescriptor) => { return (target: Object, name: string, descriptor: PropertyDescriptor) => {
const method = descriptor.value const method = descriptor.value
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment