feat: add lazy inject and websocket debug
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user