feat: add lazy inject and websocket debug

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2019-06-29 14:53:27 +08:00
parent d554b91358
commit 6780791747
13 changed files with 269 additions and 46 deletions

View File

@@ -15,7 +15,7 @@ let handler = {
let origin = argumentsList[param.index];
let props = getVaildModelMetadata(param.type);
for (const prop of props) {
if (!prop.handle(origin[prop.name])) {
if (!origin || !prop.handle(origin[prop.name])) {
throw new VaildError(prop.message);
}
}