提交 70749a6d 编写于 作者: 雪洛's avatar 雪洛

fix: 修复传入非function的callback时报错的Bug

上级 adaf0f23
......@@ -40,7 +40,9 @@ function processArgs (methodName, fromArgs, argsOption = {}, returnValue = {}, k
toArgs[keyOption.name ? keyOption.name : key] = keyOption.value
}
} else if (CALLBACKS.indexOf(key) !== -1) {
if (isFn(fromArgs[key])) {
toArgs[key] = processCallback(methodName, fromArgs[key], returnValue)
}
} else {
if (!keepFromArgs) {
toArgs[key] = fromArgs[key]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册